...
|
...
|
@@ -21,6 +21,7 @@ class UserAddress extends Model |
|
|
$areaExtendModel = new AreaExtend();
|
|
|
$where['is_default'] = 1;
|
|
|
$data = $this->where($where)->field('createtime,updatetime,is_default,id,user_id',true)->find();
|
|
|
if (!$data) return false;
|
|
|
$ids = $data['province_id'] . ',' . $data['city_id'] . ',' . $data['county_id'];
|
|
|
$area = $areaModel->where(['id' => ['in', $ids]])->column('name');
|
|
|
$data['address'] = implode('', $area) . $data['address'];
|
...
|
...
|
|