Browse Source

报价通知

liugc 1 year ago
parent
commit
31b02ac3c8
1 changed files with 8 additions and 2 deletions
  1. 8 2
      app/adminapi/logic/works/ServiceWorkLogic.php

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

@@ -336,12 +336,18 @@ class ServiceWorkLogic extends BaseLogic
 
             // 外部平台工单 - 通知外边平台
             if($work->external_platform_id > 0){
-                event('ExternalPlatform',  [
+                /*event('ExternalPlatform',  [
                     'scene' => 'confirm_price',
                     'params' => [
                         'work_id' => $work->id,
                     ]
-                ]);
+                ]);*/
+                // 商家报价通知外部平台 即报价通知
+                http_request(env('internal_api.api_url_host').'platf/performanceNotice',http_build_query([
+                    'external_platform_id'=> $work->external_platform_id,
+                    'send_code'=> 1006,
+                    'work_sn'=> $work->work_sn
+                ]));
             }
         }
         catch (\Exception $e) {