Commit 0ca9e06b authored by zw's avatar zw

bug

parent e7479f0b
...@@ -128,7 +128,11 @@ class Regions extends Model ...@@ -128,7 +128,11 @@ class Regions extends Model
*/ */
public function getRegionsByCity($city) { public function getRegionsByCity($city) {
$data = []; $data = [];
$city_data = $this->field('code,fullName')->where('fullName like %'.$city.'%')->select(); $param["fullNmae"] = array( "like", "%" . trim($city) . "%" );
$city_data = $this
->field('code,fullName')
->where($param)
->select();
$business = new GBusinessDistrict(); $business = new GBusinessDistrict();
$all_arr[0]['id'] = 0; $all_arr[0]['id'] = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment