新增获取商品库存对接、修正实际付款金额返回值
This commit is contained in:
@@ -613,6 +613,12 @@ class PatientOrderService extends BaseService
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "订单支付状态错误");
|
||||
}
|
||||
|
||||
// 验证订单过期支付时间
|
||||
$diff_time = (strtotime($order_inquiry['created_at']) - time()) / 60;
|
||||
if ($diff_time >= 30){
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "订单已过期");
|
||||
}
|
||||
|
||||
$order_id = $order_inquiry['order_inquiry_id'];
|
||||
$created_at = $order_inquiry['created_at'];
|
||||
$inquiry_type = $order_inquiry['inquiry_type'];
|
||||
@@ -654,6 +660,12 @@ class PatientOrderService extends BaseService
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "订单支付状态错误");
|
||||
}
|
||||
|
||||
// 验证订单过期支付时间
|
||||
$diff_time = (strtotime($order_product['created_at']) - time()) / 60;
|
||||
if ($diff_time >= 30){
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "订单已过期");
|
||||
}
|
||||
|
||||
$order_id = $order_product['order_product_id'];
|
||||
$created_at = $order_product['created_at'];
|
||||
$inquiry_type = 0;
|
||||
|
||||
Reference in New Issue
Block a user