dongxiaoqin 1 سال پیش
والد
کامیت
d46de0d19e
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      app/common/command/AutomaticDispatch.php

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

@@ -46,7 +46,7 @@ class AutomaticDispatch extends Command
     protected function execute(Input $input, Output $output)
     {
         //自动派单
-        //$this->autoDispatch();
+        $this->autoDispatch();
 
         //执行外呼任务
         $h = date('H');
@@ -235,7 +235,7 @@ class AutomaticDispatch extends Command
                         'properties' => [
                             '订单号' => substr($item['work_sn'], -4),
                             '详细地址'=>$item['address'],
-                            '服务类型'=> isset($this->categoryType[$item['category_type']]) ?? '',
+                            '服务类型'=> isset($this->categoryType[$item['category_type']]) ? $this->categoryType[$item['category_type']] : '',
                             '客户手机号'=>$item['mobile']
                         ]
                     ];
@@ -329,7 +329,7 @@ class AutomaticDispatch extends Command
                     'properties' => [
                         '订单号' => substr($item['work_sn'], -4),
                         '详细地址'=>$item['address'],
-                        '服务类型'=> isset($this->categoryType[$item['category_type']]) ?? '',
+                        '服务类型'=> isset($this->categoryType[$item['category_type']]) ? $this->categoryType[$item['category_type']] : '',
                         '客户手机号'=>$item['mobile']
                     ]
                 ];