作者 景龙
1 个管道 的构建 通过 耗费 0 秒

修改城市权重排列

... ... @@ -115,7 +115,10 @@ class EnjoyController extends HomeBaseController
->where('id','<>',CityCategoryModel::djxq)
->where('is_show',1)
->where('delete_time',0)
->field('id,name')->select()->toArray();
->field('id,name')
->order('weigh desc')
->select()
->toArray();
return $res;
}
}
... ...
... ... @@ -169,7 +169,10 @@ class RegionController extends HomeBaseController
->where('id','<>',CityCategoryModel::xqgh_cc)
->where('is_show',1)
->where('delete_time',0)
->field('id,name')->select()->toArray();
->field('id,name')
->order('weigh desc')
->select()
->toArray();
return $res;
}
... ...