配置修改
This commit is contained in:
@ -50,8 +50,8 @@ class RegionLogic extends Logic
|
|||||||
{
|
{
|
||||||
$arr = ["上海市","北京市","广州市","深圳市","杭州市","嘉兴市","泉州市",
|
$arr = ["上海市","北京市","广州市","深圳市","杭州市","嘉兴市","泉州市",
|
||||||
"漳州市","西安市","苏州市","哈尔滨市","菏泽市","惠州市","厦门市","济宁市","威海市","福州市"];
|
"漳州市","西安市","苏州市","哈尔滨市","菏泽市","惠州市","厦门市","济宁市","威海市","福州市"];
|
||||||
$result = '"' . implode('","', $arr) . '"';
|
// $result = '"' . implode('","', $arr) . '"';
|
||||||
$lists = DevRegion::where("name","in",$result)
|
$lists = DevRegion::whereIn("name",$arr)
|
||||||
->field('id,parent_id,level,name,short,city_code,zip_code,gcj02_lng,gcj02_lat,db09_lng,db09_lat,remark1,remark2')
|
->field('id,parent_id,level,name,short,city_code,zip_code,gcj02_lng,gcj02_lat,db09_lng,db09_lat,remark1,remark2')
|
||||||
->select()
|
->select()
|
||||||
->toArray();
|
->toArray();
|
||||||
|
|||||||
Reference in New Issue
Block a user