测试:- 房间举报bug修改

This commit is contained in:
2025-12-04 18:21:55 +08:00
parent c507f5ed1a
commit 7f4fd3d68f
2 changed files with 4 additions and 2 deletions

View File

@@ -29,7 +29,9 @@ class Report extends BaseCom
if($type_id == '' || $report_type == '' || $from_id == ''){ if($type_id == '' || $report_type == '' || $from_id == ''){
return V(0,"参数错误",null); return V(0,"参数错误",null);
} }
if($content == '' && $image == ''){
return V(0,"请填写举报内容或上传证据图片",null);
}
$data = [ $data = [
'user_id' => $this->uid, 'user_id' => $this->uid,
'type_id' => $type_id, 'type_id' => $type_id,

View File

@@ -49,7 +49,7 @@ class SystemMessage extends GuildAdmin
} }
$where['type'] = 5; $where['type'] = 5;
$count = db::name('system_message')->where($where)->count(); $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 =[]; $lists_data =[];
foreach ($lists as $key => $value) { foreach ($lists as $key => $value) {