Commit 04c789fd authored by wildfirecode's avatar wildfirecode

1

parent 40e190cc
...@@ -967,18 +967,14 @@ export class NetManager extends ABNetManager { ...@@ -967,18 +967,14 @@ export class NetManager extends ABNetManager {
this.getToken(net); this.getToken(net);
} }
public hc_doJoin(callback: Function, credits?: number, collectRuleId?: number): void { public hc_doJoin(callback: Function,score: number): void {
const param: any = { const param: any = {
activityId: DataManager.ins.customCfgData.actId, activityId: DataManager.ins.customCfgData.actId,
activityType: 'hdtool', activityType: 'hdtool',
consumerId: window['CFG'].consumerId consumerId: window['CFG'].consumerId
}; };
if (credits) {
param.credits = credits;
}
if (collectRuleId) {
param.collectRuleId = collectRuleId;
}
const net: INetData = { const net: INetData = {
name: 'hc_doJoin', name: 'hc_doJoin',
uri: '/hdtool/happyclear/doJoin', uri: '/hdtool/happyclear/doJoin',
......
...@@ -56,7 +56,7 @@ export default class StartPanel extends Panel { ...@@ -56,7 +56,7 @@ export default class StartPanel extends Panel {
if (success) { if (success) {
SceneCtrl.instance.change(ModuleTypes.MAIN_SCENE, { chapter: this._level }); SceneCtrl.instance.change(ModuleTypes.MAIN_SCENE, { chapter: this._level });
} }
}) },this._level)
} }
onTap_buy1btn() { onTap_buy1btn() {
PanelCtrl.instance.show('Buy1'); PanelCtrl.instance.show('Buy1');
......
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