Commit 5236153f authored by haiyoucuv's avatar haiyoucuv

task

parent 555ab7f6
This diff is collapsed.
......@@ -21107,7 +21107,7 @@ var taskItemData = (_a = {},
},
_a[TaskType.invites] = {
key: TaskType.invites,
title: '邀请好友',
title: '邀请好友(${done}/${total})',
desc: '每邀请一个好友,可获得${rewards}体力'
},
_a[TaskType.orderGoods] = {
......@@ -24533,6 +24533,7 @@ var MapScene = (function (_super) {
_super.prototype.start.call(this, data);
if (Tools_1.Tools.globalData.inviteId) {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.doHelp, { inviteId: Tools_1.Tools.globalData.inviteId }, function (success, res) {
Tools_1.Tools.globalData.inviteId = null;
if (success)
ctrls_1.showToast('助力成功');
});
This diff is collapsed.
......@@ -108,6 +108,7 @@ export class Main {
* @param name
* @param fun
* @param thisObj
* @param once
*/
addGlobalEvent(name: string, fun: Function, thisObj?: any, once: boolean = false) {
if (once) {
......
......@@ -65,7 +65,7 @@ const taskItemData = {
},
[TaskType.invites]: {
key: TaskType.invites,
title: '邀请好友',
title: '邀请好友(${done}/${total})',
desc: '每邀请一个好友,可获得${rewards}体力'
},
[TaskType.orderGoods]: {
......
......@@ -245,6 +245,7 @@ export class MapScene extends Scene {
if (Tools.globalData.inviteId) {
sendTbNet(TbNetName.doHelp, { inviteId: Tools.globalData.inviteId },
(success, res) => {
Tools.globalData.inviteId = null;
if (success) showToast('助力成功');
// if (success) Tools.globalData.inviteId = null;
}
......
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