feat: 新增订单ID生成逻辑

This commit is contained in:
mkm 2024-06-24 17:21:32 +08:00
parent c059df525c
commit 21a16ff999

View File

@ -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()) {