Commit 33548bdd authored by wildfirecode's avatar wildfirecode

1

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