dongxiaoqin 1 год назад
Родитель
Сommit
57588311a6

+ 4 - 4
app/adminapi/service/WeCallService.php

@@ -35,10 +35,10 @@ class WeCallService
     {
         $config = DictData::where('type_value', 'wecall')->column('value','name');
         if ($config) {
-            $this->appKey = isset($config['appKey']) ?? '';
-            $this->appSecret = isset($config['appSecret']) ?? '';
-            $this->taskId = isset($config['taskId']) ?? '';
-            $this->status = isset($config['status']) ?? 0;
+            $this->appKey = isset($config['appKey']) ? $config['appKey'] : '';
+            $this->appSecret = isset($config['appSecret']) ? $config['appSecret'] : '';
+            $this->taskId = isset($config['taskId']) ? $config['taskId'] : '';
+            $this->status = isset($config['status']) ? $config['status'] : 0;
         } 
     }
 

+ 0 - 1
app/common/command/AutomaticDispatch.php

@@ -118,7 +118,6 @@ class AutomaticDispatch extends Command
             $res = $weCallService->importUser($this->customerList);
             if (isset($res['code']) && $res['code'] == 200) {
                 $res = $weCallService->startTask();
-                print_r($res);
             }
         }
     }