xxxrrrdddd 2 سال پیش
والد
کامیت
52b657a38a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      application/api/controller/MobileController.php

+ 1 - 1
application/api/controller/MobileController.php

@@ -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')