修改地址解析默认值
This commit is contained in:
@@ -101,7 +101,8 @@ class Config extends BaseController
|
||||
$result = $tcGeocoder->reverseGeocode($latitude, $longitude);
|
||||
debug_log("解析结果:" . json_encode($result), 'local.log');
|
||||
if (!$result) {
|
||||
$this->return_json('地址解析失败');
|
||||
$this->return_response($data);
|
||||
// $this->return_json('地址解析失败');
|
||||
}
|
||||
$adcode = $result['ad_info']['adcode'];
|
||||
$row = $this->area_model->get(['county_id' => $adcode]);
|
||||
|
||||
Reference in New Issue
Block a user