正在显示
3 个修改的文件
包含
6 行增加
和
5 行删除
| @@ -44,6 +44,7 @@ class WorkOrderDing extends Command | @@ -44,6 +44,7 @@ class WorkOrderDing extends Command | ||
| 44 | try { | 44 | try { |
| 45 | $log = TicketLog::where('ding', 0)->first(); | 45 | $log = TicketLog::where('ding', 0)->first(); |
| 46 | if (!$log) { | 46 | if (!$log) { |
| 47 | + echo now() . " INFO | 没有通知任务\n"; | ||
| 47 | sleep(3); | 48 | sleep(3); |
| 48 | continue; | 49 | continue; |
| 49 | } | 50 | } |
| @@ -69,7 +70,7 @@ class WorkOrderDing extends Command | @@ -69,7 +70,7 @@ class WorkOrderDing extends Command | ||
| 69 | $log->ding = 2; | 70 | $log->ding = 2; |
| 70 | $log->save(); | 71 | $log->save(); |
| 71 | }catch (\Exception $exception){ | 72 | }catch (\Exception $exception){ |
| 72 | - echo date('Y-m-d H:i:s')." ".$exception->getMessage()."\n"; | 73 | + echo now() . " ERROR | ".$exception->getMessage()."\n"; |
| 73 | break; | 74 | break; |
| 74 | } | 75 | } |
| 75 | } | 76 | } |
| @@ -56,9 +56,9 @@ class TicketChatController extends Controller | @@ -56,9 +56,9 @@ class TicketChatController extends Controller | ||
| 56 | $chat->content = $request->input('content'); | 56 | $chat->content = $request->input('content'); |
| 57 | $files = $request->input('files'); | 57 | $files = $request->input('files'); |
| 58 | if (empty($files) || (is_array($files) && count(array_filter($files, function($v){ return !is_null($v); })) === 0)) { | 58 | if (empty($files) || (is_array($files) && count(array_filter($files, function($v){ return !is_null($v); })) === 0)) { |
| 59 | - $ticket->files = null; | 59 | + $chat->files = null; |
| 60 | } else { | 60 | } else { |
| 61 | - $ticket->files = json_encode($files); | 61 | + $chat->files = json_encode($files); |
| 62 | } | 62 | } |
| 63 | $chat->submit_side = 2; | 63 | $chat->submit_side = 2; |
| 64 | $chat->submit_username = $request->input('submit_username'); | 64 | $chat->submit_username = $request->input('submit_username'); |
| @@ -53,9 +53,9 @@ class TicketChatController extends BaseController | @@ -53,9 +53,9 @@ class TicketChatController extends BaseController | ||
| 53 | 53 | ||
| 54 | $files = $validated['files']; | 54 | $files = $validated['files']; |
| 55 | if (empty($files) || (is_array($files) && count(array_filter($files, function($v){ return !is_null($v); })) === 0)) { | 55 | if (empty($files) || (is_array($files) && count(array_filter($files, function($v){ return !is_null($v); })) === 0)) { |
| 56 | - $ticket->files = null; | 56 | + $chat->files = null; |
| 57 | } else { | 57 | } else { |
| 58 | - $ticket->files = json_encode($files); | 58 | + $chat->files = json_encode($files); |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | $chat->submit_username = $this->manage['name']; | 61 | $chat->submit_username = $this->manage['name']; |
-
请 注册 或 登录 后发表评论