Commit d732050e by 杨树贤

Merge branch 'dev/ver/1.0.0'

parents 2dfa4af1 53659135
Showing with 1 additions and 0 deletions
...@@ -19,6 +19,7 @@ class UserAddressService ...@@ -19,6 +19,7 @@ class UserAddressService
$address['user_id'] = $user->id; $address['user_id'] = $user->id;
$address['create_time'] = time(); $address['create_time'] = time();
$address['consignee'] = $address['first_name'] . ' ' . $address['last_name'];
//如果没有默认地址,那么就设置为默认地址 //如果没有默认地址,那么就设置为默认地址
$hasDefaultAddress = UserAddressModel::where('user_id', $user->id)->where('is_default', 1)->exists(); $hasDefaultAddress = UserAddressModel::where('user_id', $user->id)->where('is_default', 1)->exists();
if (!$hasDefaultAddress) { if (!$hasDefaultAddress) {
......
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