Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaoleTuia
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王剑峰
xiaoxiaoleTuia
Commits
b33b2737
Commit
b33b2737
authored
Mar 10, 2020
by
张华挺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 配置的init参数
parent
427383df
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
MainBase.ts
egret/libs/new_wx/MainBase.ts
+1
-1
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+3
-2
No files found.
egret/libs/new_wx/MainBase.ts
View file @
b33b2737
...
@@ -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
);
});
});
}
}
...
...
egret/libs/tw/manager/NetManager.ts
View file @
b33b2737
...
@@ -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
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment