微信支付 urlencode 处理

feat/task1-c-wallet
Devil 2021-08-17 11:29:52 +08:00
parent 2af06ced33
commit 65da8bb3bf
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class Weixin
// 基础信息 // 基础信息
$base = [ $base = [
'name' => '微信', // 插件名称 'name' => '微信', // 插件名称
'version' => '1.1.2', // 插件版本 'version' => '1.1.3', // 插件版本
'apply_version' => '不限', // 适用系统版本描述 'apply_version' => '不限', // 适用系统版本描述
'apply_terminal'=> ['pc', 'h5', 'ios', 'android', 'weixin', 'qq'], // 适用终端 默认全部 ['pc', 'h5', 'app', 'alipay', 'weixin', 'baidu'] 'apply_terminal'=> ['pc', 'h5', 'ios', 'android', 'weixin', 'qq'], // 适用终端 默认全部 ['pc', 'h5', 'app', 'alipay', 'weixin', 'baidu']
'desc' => '适用公众号+PC+H5+APP+微信小程序,即时到帐支付方式,买家的交易资金直接打入卖家账户,快速回笼交易资金。 <a href="https://pay.weixin.qq.com/" target="_blank">立即申请</a>', // 插件描述支持html 'desc' => '适用公众号+PC+H5+APP+微信小程序,即时到帐支付方式,买家的交易资金直接打入卖家账户,快速回笼交易资金。 <a href="https://pay.weixin.qq.com/" target="_blank">立即申请</a>', // 插件描述支持html
@ -257,7 +257,7 @@ class Weixin
case 'MWEB' : case 'MWEB' :
if(!empty($params['order_id'])) if(!empty($params['order_id']))
{ {
$data['mweb_url'] .= '&redirect_url='.$redirect_url; $data['mweb_url'] .= '&redirect_url='.urlencode($redirect_url);
} }
$result = DataReturn('success', 0, $data['mweb_url']); $result = DataReturn('success', 0, $data['mweb_url']);
break; break;