ajun 4 سال پیش
والد
کامیت
bdc9cf1e58
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/Http/Controllers/api/thirdPart/haochuang/SortingController.php

+ 1 - 1
app/Http/Controllers/api/thirdPart/haochuang/SortingController.php

@@ -219,7 +219,7 @@ class SortingController extends Controller
             "owner_id"=>$owner->id,
         ];
         $batch = Batch::query()->where("code",$code)->first();
-        if (!$wave){
+        if (!$batch){
             $obj["code"] = $code;
             $batch = Batch::query()->create($obj);
         }else{