|
|
@@ -22,7 +22,7 @@ class RegionLogic extends BaseLogic
|
|
|
*/
|
|
|
public static function getRegionList()
|
|
|
{
|
|
|
- $area_list = PostageRegion::cache(true,86400)->where('first','<>','')->field('id,name,merge_name,pid')->order('sorts asc,id asc')->select()->toArray();
|
|
|
+ $area_list = PostageRegion::cache(true,1)->where('first','<>','')->field('id,name,merge_name,pid')->order('sorts asc,id asc')->select()->toArray();
|
|
|
foreach ($area_list as &$vo) {
|
|
|
$vo['field'] = self::get_first_char($vo['name']);
|
|
|
}
|
|
|
@@ -36,7 +36,7 @@ class RegionLogic extends BaseLogic
|
|
|
|
|
|
//获取热门城市
|
|
|
$map['id'] = ['in','1710'];
|
|
|
- $hot_list = PostageRegion::cache(true,86400)->where($map)->field('id,pid,name,merge_name')->order('first asc')->select()->toArray();
|
|
|
+ $hot_list = PostageRegion::cache(true,1)->where($map)->field('id,pid,name,merge_name')->order('first asc')->select()->toArray();
|
|
|
$list = ['hot_list'=>$hot_list,'city_list'=> $citys];
|
|
|
return $list;
|
|
|
}
|