|
|
@@ -126,6 +126,16 @@ class ServiceWorkLogic extends BaseLogic
|
|
|
//添加领单日志
|
|
|
ServiceWorkReceiveLogLogic::add($work_log);
|
|
|
Db::commit();
|
|
|
+
|
|
|
+ // 工单状态通知外部平台 即工程师接单成功
|
|
|
+ if($work->external_platform_id > 0){
|
|
|
+ event('ExternalPlatform', [
|
|
|
+ 'send_code' => 1001,
|
|
|
+ 'params' => [
|
|
|
+ 'work_id' => $work->id,
|
|
|
+ ]
|
|
|
+ ]);
|
|
|
+ }
|
|
|
}
|
|
|
catch (\Exception $e) {
|
|
|
Db::rollback();
|