25 lines
472 B
PHP
25 lines
472 B
PHP
<?php
|
||
/**
|
||
* @date :2023年03月2日
|
||
* @author:刘孝全
|
||
* @email:q8197264@126.com
|
||
*
|
||
* @ 地区联动模型
|
||
*/
|
||
namespace app\api\model;
|
||
|
||
use think\model;
|
||
|
||
class GeoCity extends Model {
|
||
protected $table = "fa_geo_city";
|
||
|
||
static function Get($pcode){
|
||
$list = self::where(['switch'=>1,'province_code'=>$pcode])
|
||
->field('city_id id,city_code code,city_name name')
|
||
->select();
|
||
|
||
return $list;
|
||
}
|
||
|
||
|
||
} |