feat: 修改StoreController实现条码支付功能
This commit is contained in:
parent
53199c8aa6
commit
1bc854cdad
@ -131,7 +131,7 @@ class StoreController extends BaseApiController
|
||||
$order = UserRecharge::create($data);
|
||||
|
||||
$order['pay_price']=$order['price'];
|
||||
$order['attach']=$order['recharge'];
|
||||
$order['attach']='recharge';
|
||||
$result = PaymentLogic::codepay($auth_code, $order,'条码支付');
|
||||
if (PaymentLogic::hasError()) {
|
||||
return $this->fail(PaymentLogic::getError());
|
||||
@ -160,7 +160,7 @@ class StoreController extends BaseApiController
|
||||
UserRecharge::where('id', $id)->update(['order_id'=>$order_id]);
|
||||
$order['order_id']=$order_id;
|
||||
$order['pay_price']=$order['price'];
|
||||
$order['attach']=$order['recharge'];
|
||||
$order['attach']='recharge';
|
||||
$result = PaymentLogic::codepay($auth_code, $order,'条码支付');
|
||||
if (PaymentLogic::hasError()) {
|
||||
return $this->fail(PaymentLogic::getError());
|
||||
|
Loading…
x
Reference in New Issue
Block a user