Quellcode durchsuchen

wap支付测试

lizhen_gitee vor 2 Jahren
Ursprung
Commit
1c8e934b50
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      application/index/controller/Recharge.php

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

@@ -119,7 +119,7 @@ class Recharge extends Frontend
         ];
         ];
         $res = Service::submitOrder($params);
         $res = Service::submitOrder($params);
 
 
-        if($pay_type == 'wechat'){
+        if($pay_type == 'wechat' && $payment_method == 'scan'){
             $code_url = $res['code_url'];
             $code_url = $res['code_url'];
             $qrCode = \addons\qrcode\library\Service::qrcode(['text'=>$code_url]);
             $qrCode = \addons\qrcode\library\Service::qrcode(['text'=>$code_url]);
             $response = Response::create()->header("Content-Type", 'image/png');
             $response = Response::create()->header("Content-Type", 'image/png');