|
@@ -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');
|