Browse Source

Merge branch 'tmp-master' into 20250120_transfer_dev

liugc 1 year ago
parent
commit
79139b5d00
1 changed files with 1 additions and 1 deletions
  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']){