Commit 74692f93 authored by 邱旭's avatar 邱旭

1

parent 0f89eb5d
import { NetManager } from "../libs/tw/manager/NetManager";
import { DataManager } from "../libs/tw/manager/DataManager";
import SceneCtrl from "../libs/new_wx/ctrls/sceneCtrl";
import getHomeData from "./getHomeData";
/**
* callback回调1是有奖,0是没有奖或者风控
......@@ -17,7 +18,9 @@ export default (callback?) => {
// else {
// callback(0);
// }
NetManager.ins.hc_home(() => {
SceneCtrl.instance.updateScene();
}, window['collectRuleId']);
}
// else {
// callback(0);
......
......@@ -3101,7 +3101,9 @@ export default class MainScene extends Scene {
NetManager.ins.hc_redBombAward((success) => {
// if (success) // TODO 无论成功失败都弹,失败则为无奖励
this.redBombPanelMark = true;
NetManager.ins.hc_home(() => {
SceneCtrl.instance.updateScene();
}, window['collectRuleId']);
});
}
}
......
......@@ -131,7 +131,9 @@ export class AiControl {
if (!six.length) {
NetManager.ins.hc_redBombAward((success) => {
if (success) thisObj.redBombPanelMark = true;
NetManager.ins.hc_home(() => {
SceneCtrl.instance.updateScene();
}, window['collectRuleId']);
});
callback();
return
......
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