diff --git a/app/api/controller/store/StoreController.php b/app/api/controller/store/StoreController.php index 6b22108b6..5aa96ccc9 100644 --- a/app/api/controller/store/StoreController.php +++ b/app/api/controller/store/StoreController.php @@ -110,6 +110,9 @@ class StoreController extends BaseApiController if(!$order){ return $this->fail('订单不存在'); } + $order_id=getNewOrderId('CZ'); + UserRecharge::where('id', $id)->update(['order_id'=>$order_id]); + $order['order_id']=$order_id; $order['pay_price']=$order['price']; $result = PaymentLogic::codepay($auth_code, $order,'条码支付'); if (PaymentLogic::hasError()) {