Commit b33b2737 authored by 张华挺's avatar 张华挺

feat: 配置的init参数

parent 427383df
...@@ -468,7 +468,7 @@ export default class MainBase extends eui.UILayer { ...@@ -468,7 +468,7 @@ export default class MainBase extends eui.UILayer {
return new Promise((r) => { return new Promise((r) => {
NetManager.ins.getUserConfig(() => { NetManager.ins.getUserConfig(() => {
r() r()
}); }, 1);
}); });
} }
......
...@@ -60,14 +60,15 @@ export class NetManager extends ABNetManager { ...@@ -60,14 +60,15 @@ export class NetManager extends ABNetManager {
* tuia消消乐 * tuia消消乐
* 获取用户信息,用于分流测试 * 获取用户信息,用于分流测试
*/ */
public getUserConfig(callback: Function): void { public getUserConfig(callback: Function, isInit = 0): void {
const net: INetData = { const net: INetData = {
name: "getConfig", name: "getConfig",
uri: '/customActivity/tuia/happyclear/getConfig', uri: '/customActivity/tuia/happyclear/getConfig',
type: 'POST', type: 'POST',
dataType: 'json', dataType: 'json',
param: { param: {
deviceId: window["CFG"].uid deviceId: window["CFG"].uid,
isInit
}, },
callback: callback callback: callback
}; };
......
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