Browse Source

微信扫码支付

lizhen_gitee 3 years ago
parent
commit
8a6dd35921
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/index/controller/Recharge.php

+ 2 - 2
application/index/controller/Recharge.php

@@ -87,9 +87,9 @@ class Recharge extends Frontend
             'returnurl' => $this->request->root(true) . '/index/recharge',
         ];
         $res = Service::submitOrder($params);
-        if($pay_type == 'wechat'){
-            $code_url = $res['cod_url'];
 
+        if($pay_type == 'wechat'){
+            $code_url = $res['code_url'];
             $qrCode = \addons\qrcode\library\Service::qrcode(['text'=>$code_url]);
             $response = Response::create()->header("Content-Type", 'image/png');