测试:- 房间举报bug修改
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user