liugc hai 9 meses
pai
achega
e0297321ce

+ 4 - 3
app/adminapi/logic/works/ServiceWorkLogic.php

@@ -400,14 +400,15 @@ class ServiceWorkLogic extends BaseLogic
             $work->explanation = $params['explanation']??'';
 
             // 是否有三方的订单来源,若存在说明三方有系统 则自动确认报价
-            $platformOrders = ExternalPlatformOrders::where('work_id',$work->id)->findOrEmpty();
+            /*$platformOrders = ExternalPlatformOrders::where('work_id',$work->id)->findOrEmpty();
             if($platformOrders->isEmpty()){
                 $work->user_confirm_status = 1;//待确认报价
             }else{
                 $work->work_status = 5;
                 $work->user_confirm_status = 2;
-            }
-
+            }*/
+            $work->work_status = 5;
+            $work->user_confirm_status = 2;
             $work->price_approval = 0;
             $work->save();
 

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

@@ -131,10 +131,10 @@ class ServiceOrderController extends BaseApiController
             'user_id' => $this->userId,
             'user_info' => $this->userInfo
         ]);
-        $result = ServiceOrderLogic::confirmOrder($params);
+        /*$result = ServiceOrderLogic::confirmOrder($params);
         if (false === $result) {
             return $this->fail(ServiceOrderLogic::getError());
-        }
+        }*/
         return $this->success('已确认报价,工程师即将开始服务', [], 1, 1);
     }