You've already forked guangan
222222
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
namespace plugin\ticket\controller;
|
||||
|
||||
use app\custom\model\CustomMessage;
|
||||
use plugin\inspection\model\InspectionStaff;
|
||||
use plugin\ticket\model\ApprovalInstance;
|
||||
use plugin\ticket\model\ApprovalProcess;
|
||||
@ -379,6 +380,8 @@ class Ticket extends Controller
|
||||
'status'=>0,
|
||||
'title'=>'您有新的核验工单需要处理',
|
||||
'content'=>'您有新的核验工单需要处理,请及时处理。',
|
||||
'type' => 'TICKET_VIEW',
|
||||
'oid' => $view->id,
|
||||
]);
|
||||
$this->success('创建成功!', $view);
|
||||
} else {
|
||||
@ -480,6 +483,13 @@ class Ticket extends Controller
|
||||
'content' => $comment_data['content'],
|
||||
'result' => "后台用户反馈",
|
||||
]);
|
||||
CustomMessage::create([
|
||||
'user_id' => $share->user_id,
|
||||
'title' => "随手拍反馈",
|
||||
'content' => "您的随手拍有新的回复了,请及时查看。",
|
||||
'type' => 'USER_SHARE',
|
||||
'oid' => $share->id,
|
||||
]);
|
||||
}
|
||||
TicketTicket::mk()->commit();
|
||||
} catch (\Exception $e) {
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
namespace plugin\ticket\controller;
|
||||
|
||||
use app\custom\model\CustomMessage;
|
||||
use plugin\inspection\model\InspectionStaff;
|
||||
use plugin\ticket\model\ApprovalInstance;
|
||||
use plugin\ticket\model\ApprovalProcess;
|
||||
@ -211,6 +212,7 @@ class TicketInter extends Controller
|
||||
}
|
||||
ApprovalStep::create([
|
||||
'instance_id' => $instance->id,
|
||||
'title' => $step['title'],
|
||||
'step_number' => $index,
|
||||
'approver_type' => $step['approver_type'],
|
||||
'approver_id' => $approver_id,
|
||||
@ -267,6 +269,8 @@ class TicketInter extends Controller
|
||||
'status'=>0,
|
||||
'title'=>'您有新的维修工单需要处理',
|
||||
'content'=>'您有新的维修工单需要处理,请及时处理。',
|
||||
'type' => 'TICKET_REPAIR',
|
||||
'oid' => $view->id,
|
||||
]);
|
||||
$ticket->kj_user_id = $instance_data['kj_user_id'];
|
||||
$this->success('创建成功!', $view);
|
||||
@ -446,6 +450,13 @@ class TicketInter extends Controller
|
||||
'content' => $comment_data['content'],
|
||||
'result' => "后台用户反馈",
|
||||
]);
|
||||
CustomMessage::create([
|
||||
'user_id' => $share->user_id,
|
||||
'title' => "随手拍反馈",
|
||||
'content' => "您的随手拍有新的回复了,请及时查看。",
|
||||
'type' => 'USER_SHARE',
|
||||
'oid' => $share->id,
|
||||
]);
|
||||
}
|
||||
TicketTicket::mk()->commit();
|
||||
} catch (\Exception $e) {
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
namespace plugin\ticket\controller;
|
||||
|
||||
use app\custom\model\CustomMessage;
|
||||
use PhpOffice\PhpSpreadsheet\IOFactory;
|
||||
use plugin\inspection\model\InspectionStaff;
|
||||
use plugin\ticket\model\ApprovalInstance;
|
||||
@ -186,6 +187,13 @@ class TicketOuter extends Controller
|
||||
'content' => $comment_data['content'],
|
||||
'result' => "后台用户反馈",
|
||||
]);
|
||||
CustomMessage::create([
|
||||
'user_id' => $share->user_id,
|
||||
'title' => "随手拍反馈",
|
||||
'content' => "您的随手拍有新的回复了,请及时查看。",
|
||||
'type' => 'USER_SHARE',
|
||||
'oid' => $share->id,
|
||||
]);
|
||||
}
|
||||
TicketTicket::mk()->commit();
|
||||
} catch (\Exception $e) {
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
namespace plugin\ticket\controller;
|
||||
|
||||
use app\custom\model\CustomMessage;
|
||||
use plugin\points_mall\service\UserPointService;
|
||||
use plugin\ticket\model\TicketCommonReply;
|
||||
use plugin\ticket\model\TicketTicket;
|
||||
@ -131,6 +132,13 @@ class UserShare extends Controller
|
||||
'content' => $basic_data['content'],
|
||||
'result' => $result,
|
||||
]);
|
||||
CustomMessage::create([
|
||||
'user_id' => $share->user_id,
|
||||
'title' => "随手拍反馈",
|
||||
'content' => "您的随手拍有新的回复了,请及时查看。",
|
||||
'type' => 'USER_SHARE',
|
||||
'oid' => $share->id,
|
||||
]);
|
||||
$this->success('处理成功!');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user