소스 검색

wap支付测试

lizhen_gitee 2 년 전
부모
커밋
1c8e934b50
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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');