瀏覽代碼

改约操作

whitefang 1 年之前
父節點
當前提交
ca36d5bded
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      app/api/logic/ServiceOrderLogic.php

+ 4 - 0
app/api/logic/ServiceOrderLogic.php

@@ -790,6 +790,10 @@ class ServiceOrderLogic extends BaseLogic
             }
             }
             $work->appointment_time = strtotime($params['appointment_time']);
             $work->appointment_time = strtotime($params['appointment_time']);
 
 
+            //更新工单未确认上门的状态
+            $work->work_status = 3;
+            $work->user_confirm_status = 0;
+
             ServiceWorkAppointmentLog::create([
             ServiceWorkAppointmentLog::create([
                 'work_id'=>$work->id,
                 'work_id'=>$work->id,
                 'last_appointment_time'=>$work->appointment_time,
                 'last_appointment_time'=>$work->appointment_time,