diff --git a/app/Services/UserService.php b/app/Services/UserService.php index 4bb0cff..82a8341 100644 --- a/app/Services/UserService.php +++ b/app/Services/UserService.php @@ -375,13 +375,15 @@ class UserService extends BaseService return fail(HttpEnumCode::SERVER_ERROR); } + $user_ship_address = $user_ship_address->toArray(); + $user_ship_address['address_id'] = (string)$user_ship_address['address_id']; Db::commit(); } catch (\Exception $e) { Db::rollBack(); return fail(HttpEnumCode::HTTP_ERROR, $e->getMessage()); } - return success($user_ship_address->toArray()); + return success($user_ship_address); } /**