Commit e1bd8e6e by 杨树贤

地址详情返回国家id

parent 5004580e
Showing with 1 additions and 0 deletions
......@@ -43,6 +43,7 @@ class UserAddressService
{
$address = UserAddressModel::select(['*'])->where('address_id', $addressId)
->first()->toArray();
$address['country_id'] = $address['country'];
$address['country'] = CountryModel::where('id', $address['country'])->value('name');
return $address;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment