dongxiaoqin 11 месяцев назад
Родитель
Сommit
29ee7f990a

+ 0 - 1
app/adminapi/service/WeCallService.php

@@ -158,7 +158,6 @@ class WeCallService
 
     private function taskStatusChange($data)
     {
-        return true;
         $taskId = $data['taskId'];
         $status = $data['status'];
         if ($taskId == $this->taskId && $status == 'COMPLETE') {

+ 4 - 4
app/common/command/AutomaticDispatch.php

@@ -155,10 +155,10 @@ class AutomaticDispatch extends Command
     protected function startTask() {
         if ($this->customerList) {
             $weCallService = new WeCallService();
-            $res = $weCallService->importUser($this->customerList);
-            // if (isset($res['code']) && $res['code'] == 200) {
-            //     $res = $weCallService->startTask();
-            // }
+            $res = $weCallService->startTask();
+            if (isset($res['code']) && $res['code'] == 200) {
+                $res = $weCallService->importUser($this->customerList);
+            }
         }
         $this->customerList = [];
     }