1、上传/pay整个目录到网站根目录
2、修改游戏充值跳转路径(): 用notepad++打开游戏目录下的main.min.js搜索prototype._Pay() 搜索后点下这行后面的{ 然后后面会标红一个},把中间的内容删掉换成以下代码: var _this = this; this.Rpc(C2sProtocol.cs_recharge_get_order_number, null, function (rsp) { var rspData = rsp; var uid = Main.Instance.UserName; var serverId = Main.Instance.mConnectServerData.id; var requestURL = "/pay/index.php?uid=" + uid + "&serverid=" + serverId + "&rechargeid=" + id; window.open(requestURL); });
3、修改jsconfig.php里的配置,文件里有修改说明
|