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

feat: 配置的init参数

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