Commit 53659135 by 杨树贤

地址收货人组装数据

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