Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yyh
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
wildfirecode13
yyh
Commits
83afd0c6
Commit
83afd0c6
authored
Dec 09, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b6598fa8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
0 deletions
+33
-0
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+15
-0
config.js
mock/config.js
+3
-0
getProjectUserInfo.json
mock/getProjectUserInfo.json
+15
-0
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
83afd0c6
...
@@ -199,6 +199,21 @@ export class NetManager extends ABNetManager {
...
@@ -199,6 +199,21 @@ export class NetManager extends ABNetManager {
this
.
send
(
net
);
this
.
send
(
net
);
}
}
public
getProjectUserInfo
(
callback
:
Function
):
void
{
const
param
:
any
=
{
};
const
net
:
INetData
=
{
name
:
'getProjectUserInfo'
,
uri
:
'/ctool/getProjectUserInfo?_='
+
new
Date
().
getTime
(),
type
:
'get'
,
dataType
:
'json'
,
param
:
param
,
callback
:
callback
};
this
.
send
(
net
);
}
/**
/**
*
*
* @param shareCode
* @param shareCode
...
...
mock/config.js
View file @
83afd0c6
const
path
=
require
(
'path'
);
const
path
=
require
(
'path'
);
const
config
=
{
const
config
=
{
'/ctool/getProjectUserInfo'
:
{
data
:
'./getProjectUserInfo.json'
},
'/activityCommon/getRole'
:
{
'/activityCommon/getRole'
:
{
data
:
'./json/getRole.json'
data
:
'./json/getRole.json'
},
},
...
...
mock/getProjectUserInfo.json
0 → 100644
View file @
83afd0c6
{
"success"
:
true
,
"code"
:
null
,
"desc"
:
null
,
"timestamp"
:
1575276290637
,
"data"
:
{
"domain"
:
"//activity.m.duibadev.com.cn"
,
"credits"
:
"999"
,
"unitName"
:
"金币"
,
"consumerId"
:
500409031
,
"partnerUserId"
:
"208812345678929"
,
"consumerCredits"
:
9990
,
"loginJs"
:
"<script>window.requirelogin=function(){
\n
var ua = navigator.userAgent.toLowerCase();
\n
if(ua.match(/iphone/ig) || ua.match(/ipad/ig)){
\n
document.location='objc://duiba/login';
\n
}
\n
else if(ua.match(/android/ig)){
\n
try{
\n
duiba_app.login();
\n
}catch(e){}
\n
}
\n
}</script>"
}
}
\ No newline at end of file
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