Browse Source

up-状态对应

liugc 10 tháng trước cách đây
mục cha
commit
f554d23ea6

+ 2 - 0
app/adminapi/logic/works/ServiceWorkLogic.php

@@ -20,6 +20,7 @@ use app\api\logic\ServiceOrderLogic;
 use app\api\logic\UserCouponLogic;
 use app\common\enum\ThirdTypeEnum;
 use app\common\enum\worker\WorkerAccountLogEnum;
+use app\common\logic\ExternalPlatformLogic;
 use app\common\logic\ThirdOrderLogic;
 use app\common\logic\WorkerAccountLogLogic;
 use app\common\model\external\ExternalPlatformOrders;
@@ -1331,6 +1332,7 @@ class ServiceWorkLogic extends BaseLogic
             ]);
 
             Db::commit();
+            ExternalPlatformLogic::generalServiceWork('1003',['work_id' => $params['id']]);
             Log::info('终止结束服务'.json_encode([$serviceWork]));
             return true;
         } catch (\Exception $e) {

+ 1 - 1
app/common/logic/ExternalPlatformLogic.php

@@ -43,7 +43,7 @@ class ExternalPlatformLogic  extends BaseLogic
      * @author liugc <466014217@qq.com>
      * @date 2025/4/17 14:12
      */
-    private static function generalServiceWork($send_code,$params)
+    public static function generalServiceWork($send_code,$params)
     {
         try {
             $work = ServiceWork::where(['id'=>$params['work_id']])->findOrEmpty();