1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace huo\model\shop;
- use huo\model\common\CommonModel;
- use huolib\constant\CommonConst;
- class RegionModel extends CommonModel {
- protected $name = 'region';
-
- public function getRegionData($parent_id = 0) {
- $_map['parent_id'] = $parent_id;
- $_data = $this->cache('region_key_'.$parent_id, CommonConst::CONST_DAY_SECONDS)->where($_map)->column(
- '*', 'id'
- );
- return $_data;
- }
- }
|