|
@@ -870,7 +870,8 @@ class member_talkControl extends mbMemberControl
|
|
}
|
|
}
|
|
|
|
|
|
$hasmore = false;
|
|
$hasmore = false;
|
|
- $applys = $mod_room->roomApplys($room_id);
|
|
|
|
|
|
+ $per_page = 20;
|
|
|
|
+ $applys = $mod_room->roomApplys($room_id,"*",$per_page);
|
|
if(!empty($applys)){
|
|
if(!empty($applys)){
|
|
foreach ($applys as $k => $apply){
|
|
foreach ($applys as $k => $apply){
|
|
$info = new member_info($apply['member_id']);
|
|
$info = new member_info($apply['member_id']);
|
|
@@ -881,7 +882,7 @@ class member_talkControl extends mbMemberControl
|
|
$applys[$k]['step_msg'] = $this->step_to_str($apply['step']);
|
|
$applys[$k]['step_msg'] = $this->step_to_str($apply['step']);
|
|
}
|
|
}
|
|
|
|
|
|
- if(count($applys) == 20) $hasmore = true;
|
|
|
|
|
|
+ if(count($applys) >= $per_page) $hasmore = true;
|
|
}
|
|
}
|
|
|
|
|
|
return self::outsuccess(["applys"=>$applys,"mobile_page"=>["hasmore"=>$hasmore,"curpage"=>$this->cur_page]]);
|
|
return self::outsuccess(["applys"=>$applys,"mobile_page"=>["hasmore"=>$hasmore,"curpage"=>$this->cur_page]]);
|