* @version : HUOSDK 8.0 */ namespace huo\model\shop; use huo\model\common\CommonModel; use huolib\constant\CommonConst; class RegionModel extends CommonModel { protected $name = 'region'; /** * @param int $parent_id * * @return array */ public function getRegionData($parent_id = 0) { $_map['parent_id'] = $parent_id; // $_map['level'] = $level; $_data = $this->cache('region_key_'.$parent_id, CommonConst::CONST_DAY_SECONDS)->where($_map)->column( '*', 'id' ); return $_data; } }