diff --git a/config/.config.php.example b/config/.config.php.example index 2b035e6..df5b641 100644 --- a/config/.config.php.example +++ b/config/.config.php.example @@ -320,8 +320,9 @@ $System_Config['sendgrid_sender'] = ''; #取值 f2fpay,none,pay91 $System_Config['payment_system']='pay91'; -#91pay,alipay为你的支付宝账号的base64加密后的内容(为了安全)请将编译之后的支付宝账号复制于下方 http://tool.chinaz.com/Tools/Base64.aspx -$System_Config['alipay']=''; #比如你支付宝账号是:mmmwhy,则密文为: bW1td2h5 +#请将base64加密后的支付宝账号复制于下方 http://tool.chinaz.com/Tools/Base64.aspx ,比如你支付宝账号是:mmmxcc,则密文为: bW1teGNj +#如果使用了CDN或反代,为了防止无法通知到真实的服务器,请在 /public/assets/91pay.php 第289行修改 $codepay_config['notify_url']参数 +$System_Config['alipay']=''; #alipay,f2fpay ---> https://91vps.win/2017/06/09/alipay_f2f_ss_panel_mod/ $System_Config['f2fpay_app_id']=''; diff --git a/public/assets/91pay.zip b/public/assets/91pay.zip index 2bcfe7c..e5509aa 100644 Binary files a/public/assets/91pay.zip and b/public/assets/91pay.zip differ diff --git a/public/assets/91pay/91pay.php b/public/assets/91pay/91pay.php index c7ba173..ceffa8d 100644 --- a/public/assets/91pay/91pay.php +++ b/public/assets/91pay/91pay.php @@ -284,7 +284,9 @@ $codepay_config['host'] = (isHTTPS() ? 'https://' : 'http://') . $_SERVER['HTTP_ $codepay_config['path'] = $codepay_config['host'] . dirname($_SERVER['REQUEST_URI']); //API安装路径 最终为http://域名/codepay $codepay_config['return_url'] = $codepay_config['host'].'/pay91'; //自动生成跳转地址 $codepay_config['qrcode_url'] = '/assets/91pay/qrcode.php'; -$codepay_config['notify_url'] = $codepay_config['host'].'/notify'; //自动生成通知地址 优先级最高不传入则为系统设置里设置 +//如果使用CDN,请在此处设置为真实服务器地址(可以解析一个非常复杂的二级域名到服务器上),以免回调失败。 +//举个例子:$codepay_config['notify_url'] = 'https://91vps.win/notify'; +$codepay_config['notify_url'] = $codepay_config['host'].'/notify'; if (empty($_POST)) $_POST = $_GET; //如果为GET方式访问 $user = $_POST['user'];//提交的用户名 $pay_id = $user; //网站唯一标识 需要充值的用户名,用户ID或者自行创建订单 建议传递用户的ID