|
@@ -26,6 +26,7 @@ use app\common\logic\WorkerAccountLogLogic;
|
|
|
use app\common\model\external\ExternalPlatformOrders;
|
|
use app\common\model\external\ExternalPlatformOrders;
|
|
|
use app\common\model\third\ThirdOrders;
|
|
use app\common\model\third\ThirdOrders;
|
|
|
use app\common\model\works\ServiceWorkDeterminedPrice;
|
|
use app\common\model\works\ServiceWorkDeterminedPrice;
|
|
|
|
|
+use app\common\service\OnlineCustomerService;
|
|
|
use app\workerapi\logic\MasterWorkerLogic;
|
|
use app\workerapi\logic\MasterWorkerLogic;
|
|
|
use think\Exception;
|
|
use think\Exception;
|
|
|
use think\db\Query;
|
|
use think\db\Query;
|
|
@@ -563,6 +564,8 @@ class ServiceWorkLogic extends BaseLogic
|
|
|
ServiceWorkerAllocateWorkerLogic::add($work_log);
|
|
ServiceWorkerAllocateWorkerLogic::add($work_log);
|
|
|
Db::commit();
|
|
Db::commit();
|
|
|
|
|
|
|
|
|
|
+ $work->id && OnlineCustomerService::customerClsMessage('servicework',$work->id);
|
|
|
|
|
+
|
|
|
// 外部平台工单 - 通知外边平台
|
|
// 外部平台工单 - 通知外边平台
|
|
|
if($work->external_platform_id > 0){
|
|
if($work->external_platform_id > 0){
|
|
|
ExternalPlatformLogic::generalServiceWork('1003',['work_id' => $work->id]);
|
|
ExternalPlatformLogic::generalServiceWork('1003',['work_id' => $work->id]);
|
|
@@ -1171,7 +1174,7 @@ class ServiceWorkLogic extends BaseLogic
|
|
|
if($serviceWork->isEmpty()){
|
|
if($serviceWork->isEmpty()){
|
|
|
throw new \Exception('工单不存在');
|
|
throw new \Exception('工单不存在');
|
|
|
}
|
|
}
|
|
|
- ServiceWorkCustomerLog::create([
|
|
|
|
|
|
|
+ $res = ServiceWorkCustomerLog::create([
|
|
|
'work_id'=>$serviceWork->id,
|
|
'work_id'=>$serviceWork->id,
|
|
|
'type'=>$params['type']??0,
|
|
'type'=>$params['type']??0,
|
|
|
'content'=>$params['content']??'',
|
|
'content'=>$params['content']??'',
|
|
@@ -1179,6 +1182,7 @@ class ServiceWorkLogic extends BaseLogic
|
|
|
'create_time'=>time(),
|
|
'create_time'=>time(),
|
|
|
]);
|
|
]);
|
|
|
Db::commit();
|
|
Db::commit();
|
|
|
|
|
+ $res && OnlineCustomerService::customerClsMessage('servicework',$serviceWork->id);
|
|
|
return true;
|
|
return true;
|
|
|
} catch (\Exception $e) {
|
|
} catch (\Exception $e) {
|
|
|
Db::rollback();
|
|
Db::rollback();
|