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) {