修改地址解析默认值

This commit is contained in:
lccsw
2026-03-17 14:54:12 +08:00
parent 8e96a11c92
commit a4c07f557f
+2 -1
View File
@@ -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]);