|
@@ -22,7 +22,9 @@ use App\Service\OperationLogService;
|
|
|
use App\Service\OrderNoService;
|
|
|
use App\Service\SalesOrderService;
|
|
|
use App\Service\U8ServerService;
|
|
|
+use App\Service\WDTService;
|
|
|
use Illuminate\Http\Request;
|
|
|
+use Illuminate\Support\Facades\DB;
|
|
|
use Illuminate\Support\Facades\Hash;
|
|
|
|
|
|
|
|
@@ -38,7 +40,10 @@ class TestController extends BaseController
|
|
|
|
|
|
}
|
|
|
|
|
|
- public function aa(){dd(222);
|
|
|
+ public function aa(){
|
|
|
+ $array = (new SalesOrderService())->salesOrderPdf(['id' => 37938],['id'=>1,'head'=>['id' =>2]]);dd($array);
|
|
|
+ dd(2);$this->test3();dd(222);
|
|
|
+ (new WDTService())->getOrderListAuto([]);dd(222);
|
|
|
$service = new U8ServerService(true);
|
|
|
if(! empty($service->error)) return [false, $service->error];
|
|
|
dd(11111);
|
|
@@ -250,4 +255,13 @@ dd($error);
|
|
|
echo "Connection failed: " . $e->getMessage() . "\n";
|
|
|
}
|
|
|
}
|
|
|
+ public function test3(){
|
|
|
+ $dsn = "sqlsrv:Server=8u80504l59.vicp.fun,57323;Database=UFDATA_101_2023";
|
|
|
+ $pdo = new \PDO($dsn, "sa", "TiZi#40068642538");
|
|
|
+ $pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
|
|
|
+
|
|
|
+ // 成功连接
|
|
|
+ $this->db = DB::setPdo($pdo); // 可选:将这个 pdo 绑定给 DB Facade 使用
|
|
|
+ dd(11222333);
|
|
|
+ }
|
|
|
}
|