Ver Fonte

up - accept_order_status

liugc há 1 ano atrás
pai
commit
cb42b9a590
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      app/common/logic/MasterWorkerExamineLogic.php

+ 3 - 0
app/common/logic/MasterWorkerExamineLogic.php

@@ -37,6 +37,7 @@ class MasterWorkerExamineLogic extends BaseLogic
         try {
             $resData = MasterWorker::with(['workerInfo','workerAgree','bankAccount'])->where('id', $worker_id)->findOrEmpty()->toArray();
 
+            $accept_order_status = 0;
             if(!isset($resData['workerInfo']['id']) || !isset($resData['workerAgree']['id']) || !isset($resData['bankAccount']['id'])) {
                 $audit_state = 3;
             }elseif ((int)$resData['workerInfo']['audit_state'] === 0 || (int)$resData['workerAgree']['audit_state'] === 0 || (int)$resData['bankAccount']['audit_state'] === 0){
@@ -45,9 +46,11 @@ class MasterWorkerExamineLogic extends BaseLogic
                 $audit_state = 2;
             }else{
                 $audit_state = 1;
+                $accept_order_status = 1;
             }
             MasterWorker::where('id', $worker_id)->update([
                 'audit_state' => $audit_state,
+                'accept_order_status' => $accept_order_status,
             ]);
             Db::commit();