no message

This commit is contained in:
hellcat committed 2025-03-22 19:16:44 +08:00
1 parent c61c060f35
commit b99b242f8c
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -63,6 +63,7 @@ final class TicketController extends BaseController
{
$id = $args['id'];
$comment = $request->getParam('comment') ?? '';
$admin_name = $request->getParam('admin_name') ?? 'fuuu';
if ($comment === '') {
return $response->withJson([
@@ -84,7 +85,7 @@ final class TicketController extends BaseController
$content_new = [
[
'comment_id' => $content_old[count($content_old) - 1]['comment_id'] + 1,
'commenter_name' => 'Admin',
'commenter_name' => $admin_name,
'comment' => $comment,
'datetime' => time(),
],