|
@@ -131,7 +131,7 @@ class MobileController extends UserApi
|
|
|
}else{
|
|
|
if($data['type']==1) {
|
|
|
if($chanId){
|
|
|
- $model->join('mobile_sub')
|
|
|
+ $model->join('mobile_sub',"mobile.id=mobile_sub.mobile_id and mobile_sub.sub_admin_id={$chanId}")
|
|
|
->order('activity_time', 'desc')
|
|
|
->orderRaw('FIELD(top_time,1) DESC,FIELD(rec_time,1) DESC')
|
|
|
->order('mobile_sub.sub_sort', 'asc')
|