更新订单详情

parent f526b232
Showing with 5 additions and 1 deletions
...@@ -75,6 +75,10 @@ class OrderService ...@@ -75,6 +75,10 @@ class OrderService
#订单地址 #订单地址
$shippingAddress = UserAddressModel::where("address_id",$shipping_address_id)->first(); $shippingAddress = UserAddressModel::where("address_id",$shipping_address_id)->first();
$billingAddress = UserAddressModel::where("address_id",$billing_address_id)->first(); $billingAddress = UserAddressModel::where("address_id",$billing_address_id)->first();
if (!$shippingAddress || !$billingAddress){
throw new InvalidRequestException("error: Address");
}
$addressData =[[ $addressData =[[
"address_id"=>$shipping_address_id, "address_id"=>$shipping_address_id,
"user_id"=>$user_id, "user_id"=>$user_id,
...@@ -222,7 +226,7 @@ class OrderService ...@@ -222,7 +226,7 @@ class OrderService
return $order_id; return $order_id;
}catch (\Exception $e){ }catch (\Exception $e){
$con->rollback(); $con->rollback();
throw new InvalidRequestException($e->getMessage().$e->getFile().$e->getLine()); throw new InvalidRequestException($e->getMessage());
} }
} }
......
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