|
|
@@ -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 = [];
|
|
|
}
|