优化关闭工单操作 & 维护模式判断条件

This commit is contained in:
兔姬桑
2020-12-04 14:30:21 +08:00
parent ae3a94d873
commit fac8dacd17
9 changed files with 256 additions and 236 deletions

View File

@@ -384,8 +384,7 @@ class UserController extends Controller
{
$id = $request->input('id');
$ret = Ticket::uid()->whereId($id)->update(['status' => 2]);
if ($ret) {
if (Ticket::uid()->whereId($id)->close()) {
PushNotification::send('工单关闭提醒', '工单ID'.$id.'用户已手动关闭');
return Response::json(['status' => 'success', 'message' => '关闭成功']);