传奇世界H5 开启内充教程 内部充值开服必备
打开传奇世界客户端文件: \WWW\libs\modules\g-mid\g-mid.js 首冲按钮://6,12,30,98 约930行 加上充值链接:window.open("http://www.充值链接.com");
===================
//6,12,30,98
p._tap_btn_item0 = function () {
var self = this;
var infos = mo.getJSONWithFileName(gc.cfg_c_recharge);
self._doRecharge(infos[1]);
window.open("http://www.充值链接.com");
};
p._tap_btn_item1 = function () {
var self = this;
var infos = mo.getJSONWithFileName(gc.cfg_c_recharge);
self._doRecharge(infos[2]);
window.open("http://www.充值链接.com");
};
p._tap_btn_item2 = function () {
var self = this;
var infos = mo.getJSONWithFileName(gc.cfg_c_recharge);
self._doRecharge(infos[3]);
window.open("http://www.充值链接.com");
};
p._tap_btn_item3 = function () {
var self = this;
var infos = mo.getJSONWithFileName(gc.cfg_c_recharge);
self._doRecharge(infos[4]);
window.open("http://www.充值链接.com");
};
===================
充值按钮 约555行 加上充值链接:window.open("http://www.充值链接.com");
===================
p._click_list_items = function (e) {
var self = this;
var item = e.item;
var str = "尝试购买【%s充值档】的次数";
var rechargeId = item[gc.c_recharge_id];
var payId = item[gc.c_recharge_payId];
window.open("http://www.充值链接.com");
//ws.recordEvent("点击充值【" + item[gc.c_recharge_cost] + "元按钮】", 1);
var payInfo = mo.getJSONWithFileNameAndID(gc.cfg_c_payInfo, payId);
var goodsId = payInfo[mo_channel.channelKeyMap[egret.project.channelId]][0];
mo_channel.getCurChannel().pay(rechargeId, goodsId, function (data) {
mo.log("充值成功");
}, self);
};
|