LD 5 years ago
parent
commit
bcffd47f25

+ 2 - 2
app/Http/Controllers/TestController.php

@@ -737,7 +737,7 @@ class TestController extends Controller
 
     public function reNewBatches3()
     {
-        $batches = Batch::query()->where('id', '>', 84301)->get('code');
+        $batches = Batch::query()->where('id', '>', 94486)->get('code');
         $batchCodes = $batches->map(function ($batch) {
             return $batch['code'];
         })->toArray();
@@ -764,7 +764,7 @@ class TestController extends Controller
 //        dd($logs);
         foreach ($batchCodes as $code) {
 //            $request=Cache::get('temp'.$code)['description'];
-            $request = Log::query()->select('description')->where('CREATED_AT', '>=', '2021-03-05')
+            $request = Log::query()->select('description')->where('CREATED_AT', '>=', '2021-04-05')
                 ->where('method', "issued_newBatch")
                 ->where('description', 'like', "%{$code}%")
                 ->first();

+ 4 - 9
app/Http/Controllers/api/thirdPart/haiq/StorageController.php

@@ -38,22 +38,17 @@ class StorageController
             "priority" => 99,//优先级 1-2147483647 1最低
             "sequenceFlag" => -1,//是否需要有序 1:需要有序 0:不需要有序
             "bins" => [$bin],//可执行货箱任务
-        ]];*/
+        ]];*///IDE0005714,IDE0004970
         $this->post = [[
             "taskMode"      => 1,
             "bins"=>[[
                 "taskCode"  =>'t'.microtime(true),
-                "binCode"   => "IDE0005665",
+                "binCode"   => "IDE0005714",
                 "fromLocCode" => "BIN-IN1",
                 "toLocCode" => "",
             ],[
                 "taskCode"  =>'t1'.microtime(true),
-                "binCode"   => "IDE0005656",
-                "fromLocCode" => "BIN-IN1",
-                "toLocCode" => "",
-            ],[
-                "taskCode"  =>'t2'.microtime(true),
-                "binCode"   => "IDE0005657",
+                "binCode"   => "IDE0004970",
                 "fromLocCode" => "BIN-IN1",
                 "toLocCode" => "",
             ],],
@@ -254,7 +249,7 @@ class StorageController
            return ['success'=>false,"data"=>$response["msg"]];
         }
         app('LogService')->log(__METHOD__,"haiq-料箱出库成功","REQUEST:".json_encode($this->post)." | RESPONSE:".$response);
-        return ["success"=>true];
+        return ["success"=>true,'data'=>$response->body()];
     }
     public function light(Request $request,$post){
         $response = Http::post(config('api.haiq.storage.light'),$post);