1
0
dongxiaoqin 1 жил өмнө
parent
commit
79dff28bbf

+ 4 - 3
app/workerapi/logic/MasterWorkerLogic.php

@@ -243,15 +243,16 @@ class MasterWorkerLogic extends  BaseLogic
             if (empty($params['worker_id']) || empty($params['answer']) || empty($params['answer1']) || empty($params['answer2']) ) {
                 return false;
             }
-            if (empty($params['answer7']) == 1) {
+            if (!empty($params['answer7'])) {
                 //维修
                 $type = 1;
-            } else if ($params['answer6'] == 2) {
+            } else if (!empty($params['answer6'])) {
                 //清洗
                 $type = 2;
-            } else if ($params['answer5'] == 3) {
+            } else if (!empty($params['answer5'])) {
                 //安装
                 $type = 3;
+                $params['status'] = 1;
             } else {
                 $type = 0;
                 $params['status'] = 0;