Commit 33548bdd authored by wildfirecode's avatar wildfirecode

1

parent 23a0738f
......@@ -55,16 +55,14 @@ export default class MapScene extends Scene {
private icons = {};
private actIcon: ActIcon = null;
sendInvite() {
private sendInvite() {
const code = Utils.getRequestByKey('shareCode') || Utils.getRequestByKey('token');//0224新加用token取一边
if (!code) return;
if (doHelpFlag) {
return;
}
//0224修改,取sceneCode,
const sceneCode = Utils.getRequestByKey('sceneCode')
if (sceneCode == CodeChannels.AddBlood) {//加体力的,0228到时会修改成助力,这里要加逻辑
//if (window["test0228"]) {//测试助力,到时失败code再和后端对接
if (sceneCode == CodeChannels.AddBlood) {
NetManager.ins.doHelpNew((s, res) => {
doHelpFlag = true;
if (s) {
......@@ -85,9 +83,6 @@ export default class MapScene extends Scene {
showToast(res && codeMsgs[res.code] ? codeMsgs[res.code] : "助力失败");
}
}, code)
// } else {
// showToast("欢迎小主,闯关就能拿现金~");
// }
}
else if (sceneCode == CodeChannels.RankPlay) {//排行榜邀请好友的,不需要了
showToast("欢迎加入游戏,去闯关吧");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment