Commit 1c46eacc authored by zw's avatar zw

bug

parent 34187f44
......@@ -403,6 +403,7 @@ class Shop extends Basic
{
header('Access-Control-Allow-Origin:*');
$params = $this->params;
$params["city"] = "深圳市";
if(empty($params["city"])){
return $this->response("101", "参数错误");
}
......
......@@ -128,7 +128,7 @@ class Regions extends Model
*/
public function getRegionsByCity($city) {
$data = [];
$param["fullNmae"] = array( "like", "%" . trim($city) . "%" );
$param["fullName"] = array( "like", "%" . trim($city) . "%" );
$city_data = $this
->field('code,fullName')
->where($param)
......
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