|
|
|
@ -70,17 +70,11 @@ class WxpayController |
|
|
|
if ($status == OrderStatus::UNPAID) { |
|
|
|
$order->status = OrderStatus::PAY_EARNEST; |
|
|
|
} else if ($status == OrderStatus::PAY_EARNEST) { |
|
|
|
//只有支付的金额大于等于订单总价,才将订单状态修改为PAID_RETAINAGE
|
|
|
|
if ($order->paid_money + $money >= $order->price) { |
|
|
|
$order->status = OrderStatus::PAID_RETAINAGE; |
|
|
|
} |
|
|
|
$order->status = OrderStatus::PAID_RETAINAGE; |
|
|
|
$order->verify_code = uniqid(); //生成核销码
|
|
|
|
} |
|
|
|
} else if ($pay_type == 0) { |
|
|
|
$order->status = OrderStatus::PAID; |
|
|
|
} |
|
|
|
|
|
|
|
//支付金额>=订单金额之后生成核销码
|
|
|
|
if ($order->paid_money + $money >= $order->price) { |
|
|
|
$order->verify_code = uniqid(); //生成核销码
|
|
|
|
} |
|
|
|
|
|
|
|
|