浏览代码

工程师确定新的预约时间

whitefang 1 年之前
父节点
当前提交
f1ac5e9328

+ 1 - 1
app/adminapi/logic/master_worker/MasterWorkerLogic.php

@@ -166,7 +166,7 @@ class MasterWorkerLogic extends BaseLogic
         },'workerRegister'=>function(Query $query){
             $query->field('worker_id,maintain_exp_type,other_exp_type,city,vehicle_type,name,age,mobile')->append(['maintain_exp_type_text','other_exp_type_text','vehicle_type_text','city_text']);
         }])->findOrEmpty($params['id'])->toArray();
-        if($info['category_ids']){
+        if(!empty($info['category_ids'])){
             $info['category_ids'] = explode(',',$info['category_ids']);
             $info['category_ids'] = array_map('intval', $info['category_ids']);
         }

+ 2 - 1
app/api/controller/ServiceOrderController.php

@@ -240,7 +240,7 @@ class ServiceOrderController extends BaseApiController
         }
         $order = ServiceOrderLogic::orderPayInfo($params);
         $workDetail = ServiceWorkAppointmentLog::where(['work_id'=>$order['work_id']])->order('id desc')->findOrEmpty();
-        $masterDetail = MasterWorkerLogic::detail(['id'=>$workDetail['master_worker_id']]);
+        $masterDetail = MasterWorkerLogic::detail(['id'=>$result['master_worker_id']]);
         // 修改预约时间通知【给用户的通知】
         $res = event('Notice',  [
             'scene_id' => 117,
@@ -262,6 +262,7 @@ class ServiceOrderController extends BaseApiController
                 'phone_number8' => $result['mobile'],
             ]
         ]);
+
         return $this->success('已提交改约', [], 1, 1);
     }