|
@@ -30,6 +30,10 @@ class Address extends Base
|
|
if (!$row) {
|
|
if (!$row) {
|
|
$this->error('未找到记录');
|
|
$this->error('未找到记录');
|
|
}
|
|
}
|
|
|
|
+ $areainfo = $row->areainfo;
|
|
|
|
+ $row['province'] = $areainfo['province'] ? $areainfo['province']['name'] : '';
|
|
|
|
+ $row['city'] = $areainfo['city'] ? $areainfo['city']['name'] : '';
|
|
|
|
+ $row['area'] = $areainfo['area'] ? $areainfo['area']['name'] : '';
|
|
$this->success('获取成功', $row);
|
|
$this->success('获取成功', $row);
|
|
}
|
|
}
|
|
|
|
|