Parcourir la source

Merge branch 'tmp-master' into 20250120_transfer_dev

liugc il y a 1 an
Parent
commit
79139b5d00
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/workerapi/logic/MasterWorkerTeamLogic.php

+ 1 - 1
app/workerapi/logic/MasterWorkerTeamLogic.php

@@ -126,7 +126,7 @@ class MasterWorkerTeamLogic extends  BaseLogic
             if($work->isEmpty()){
             if($work->isEmpty()){
                 throw new Exception('工单不存在');
                 throw new Exception('工单不存在');
             }
             }
-            if($work->work_status != 1 ){
+            if(!in_array($work->work_status, [1,2,3,4,5])){
                 throw new \Exception('工单已被领取,不可分配');
                 throw new \Exception('工单已被领取,不可分配');
             }
             }
             if($work->master_worker_id == $params['master_worker_id']){
             if($work->master_worker_id == $params['master_worker_id']){