From 7f4fd3d68f5475818fdaee92c2690f72b05f3a5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Thu, 4 Dec 2025 18:21:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=EF=BC=9A-=20=E6=88=BF?= =?UTF-8?q?=E9=97=B4=E4=B8=BE=E6=8A=A5bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Report.php | 4 +++- application/guildadmin/controller/SystemMessage.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/application/api/controller/Report.php b/application/api/controller/Report.php index f2af3fd..2cac942 100644 --- a/application/api/controller/Report.php +++ b/application/api/controller/Report.php @@ -29,7 +29,9 @@ class Report extends BaseCom if($type_id == '' || $report_type == '' || $from_id == ''){ return V(0,"参数错误",null); } - + if($content == '' && $image == ''){ + return V(0,"请填写举报内容或上传证据图片",null); + } $data = [ 'user_id' => $this->uid, 'type_id' => $type_id, diff --git a/application/guildadmin/controller/SystemMessage.php b/application/guildadmin/controller/SystemMessage.php index 73e412b..72e8020 100644 --- a/application/guildadmin/controller/SystemMessage.php +++ b/application/guildadmin/controller/SystemMessage.php @@ -49,7 +49,7 @@ class SystemMessage extends GuildAdmin } $where['type'] = 5; $count = db::name('system_message')->where($where)->count(); - $lists = db::name('system_message')->where($where)->page($page, $page_limit)->select(); + $lists = db::name('system_message')->where($where)->order('createtime desc')->page($page, $page_limit)->select(); $lists_data =[]; foreach ($lists as $key => $value) {