Commit e72d3292 authored by zjz1994's avatar zjz1994

单个广告实现

parent 4fa59434
...@@ -179,7 +179,7 @@ export class DataManager extends ABDataManager { ...@@ -179,7 +179,7 @@ export class DataManager extends ABDataManager {
* @returns {any} * @returns {any}
*/ */
// tslint:disable-next-line:cyclomatic-complexity // tslint:disable-next-line:cyclomatic-complexity
public updateData(name: number, result: any, param?: any): Data { public updateData(name: any, result: any, param?: any): Data {
let data: Data; let data: Data;
switch (name) { switch (name) {
case NetName.GET_ROLE: case NetName.GET_ROLE:
...@@ -617,6 +617,9 @@ export class DataManager extends ABDataManager { ...@@ -617,6 +617,9 @@ export class DataManager extends ABDataManager {
this._getRecordData.update(result); this._getRecordData.update(result);
data = this._getRecordData; data = this._getRecordData;
default: default:
if(name=="hc_advert"){
console.log("新广告,分展示位单个区别获取",name,result,param);
}
this[this.getKey(name)] = result; this[this.getKey(name)] = result;
} }
this.dispatchEvent(new egret.Event('dataUpdate', false, false, name)); this.dispatchEvent(new egret.Event('dataUpdate', false, false, name));
......
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