|
@@ -48,6 +48,7 @@ class MobileController extends UserApi
|
|
|
* @ApiParams (name="limit",description="limit")
|
|
|
* @ApiParams (name="page",description="page")
|
|
|
* @ApiParams (name="is_activity",description="是否是优惠号码")
|
|
|
+ * @ApiParams (name="chanId",description="分站ID")
|
|
|
* @ApiReturnParams (name=id,description=id)
|
|
|
* @ApiReturnParams (name="type",description="1靓号,2流量卡")
|
|
|
* @ApiReturnParams (name=logo,description=缩略图)
|
|
@@ -131,10 +132,10 @@ class MobileController extends UserApi
|
|
|
}else{
|
|
|
if($data['type']==1) {
|
|
|
if($chanId){
|
|
|
- $model->join('mobile_sub',"mobile.id=mobile_sub.mobile_id and mobile_sub.sub_admin_id={$chanId}")
|
|
|
+ $model->join('mobile_sub',"mobile.id=mobile_sub.mobile_id and mobile_sub.sub_admin_id={$chanId}",'LEFT')
|
|
|
->order('activity_time', 'desc')
|
|
|
->orderRaw('FIELD(top_time,1) DESC,FIELD(rec_time,1) DESC')
|
|
|
- ->order('mobile_sub.sub_sort', 'asc')
|
|
|
+ ->orderRaw('mobile_sub.sub_sort is null,mobile_sub.sub_sort asc')
|
|
|
->order('id', 'desc');
|
|
|
}else {
|
|
|
$model->order('activity_time', 'desc')
|