|
@@ -134,7 +134,13 @@ class Area extends Model
|
|
|
if(!$id){
|
|
|
return '';
|
|
|
}
|
|
|
- return implode('',self::whereIn('id',$id)->column('name'));
|
|
|
+ $cacheName='area_'.serialize($id);
|
|
|
+ $res=Cache::get($cacheName);
|
|
|
+ if(!$res){
|
|
|
+ $res=implode('',self::whereIn('id',$id)->column('name'));
|
|
|
+ Cache::set($cacheName,$res,0);
|
|
|
+ }
|
|
|
+ return $res;
|
|
|
}
|
|
|
|
|
|
public static function shouldSend($county_id){
|