Przeglądaj źródła

wap支付测试

lizhen_gitee 2 lat temu
rodzic
commit
1c8e934b50
1 zmienionych plików z 1 dodań i 1 usunięć
  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);
 
-        if($pay_type == 'wechat'){
+        if($pay_type == 'wechat' && $payment_method == 'scan'){
             $code_url = $res['code_url'];
             $qrCode = \addons\qrcode\library\Service::qrcode(['text'=>$code_url]);
             $response = Response::create()->header("Content-Type", 'image/png');