...
|
...
|
@@ -259,6 +259,7 @@ class UserAddress extends Api |
|
|
$areaExtendModel = new AreaExtend();
|
|
|
$userId = $this->getUserId();
|
|
|
$data = $model->getDefaultData(['user_id'=>$userId]);
|
|
|
if (!$data) $this->error('该用户没有默认地址');
|
|
|
$where = ['province_id'=>$data['province_id'],'city_id'=>$data['city_id'],'county_id'=>$data['county_id']];
|
|
|
$is_special = $areaExtendModel->where($where)->value('is_special');
|
|
|
if (!$is_special) $is_special = $areaExtendModel->where(['province_id'=>$data['province_id']])->value('is_special');
|
...
|
...
|
|