|
|
|
@ -88,9 +88,11 @@ class OrderOnlineController extends BaseController |
|
|
|
throw new ErrorCodeException(ErrorCode::NOT_BIND_TEL_ERROR); |
|
|
|
} |
|
|
|
//获取用户收货地址
|
|
|
|
$address = UserAddress::query()->where('user_id',$userId) |
|
|
|
->orderByDesc('is_default') |
|
|
|
->orderByDesc('updated_at') |
|
|
|
$address = UserAddress::query() |
|
|
|
->where('user_id',$userId) |
|
|
|
->where('id_default',1) |
|
|
|
// ->orderByDesc('is_default')
|
|
|
|
// ->orderByDesc('updated_at')
|
|
|
|
->first(); |
|
|
|
$res['location'] = [ |
|
|
|
'address' => $address, |
|
|
|
|