浏览代码

修改外呼

dongxiaoqin 1 年之前
父节点
当前提交
57588311a6
共有 2 个文件被更改,包括 4 次插入5 次删除
  1. 4 4
      app/adminapi/service/WeCallService.php
  2. 0 1
      app/common/command/AutomaticDispatch.php

+ 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);
             }
         }
     }