Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
xiaoxiaole
Commits
08a983f5
Commit
08a983f5
authored
Sep 04, 2020
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整口令233
parent
f854dc7e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+1
-1
ShareCodePanel.ts
egret/src/panels/ShareCodePanel.ts
+19
-19
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
08a983f5
...
@@ -2591,7 +2591,7 @@ export class NetManager extends ABNetManager {
...
@@ -2591,7 +2591,7 @@ export class NetManager extends ABNetManager {
public
getShareContent
(
callback
,
activityCode
,
sceneCode
,
token
){
public
getShareContent
(
callback
,
activityCode
,
sceneCode
,
token
){
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
"generateCode"
,
name
:
"generateCode"
,
uri
:
"https://gamea
ct.suning.com/sngame-web/share/api/gateway
/getShareContentByToken.do?activityCode="
+
activityCode
+
"&sceneCode="
+
sceneCode
+
"&token="
+
token
,
uri
:
"https://gamea
pi.suning.com/sngame-web/share/api/public
/getShareContentByToken.do?activityCode="
+
activityCode
+
"&sceneCode="
+
sceneCode
+
"&token="
+
token
,
type
:
'get'
,
type
:
'get'
,
dataType
:
'json'
,
dataType
:
'json'
,
hideMsg
:
true
,
hideMsg
:
true
,
...
...
egret/src/panels/ShareCodePanel.ts
View file @
08a983f5
...
@@ -320,25 +320,25 @@ function generateCode(callback: Function, channel: CodeChannels, shareCode: stri
...
@@ -320,25 +320,25 @@ function generateCode(callback: Function, channel: CodeChannels, shareCode: stri
token
token
}
}
console
.
log
(
"新请求233567456"
);
console
.
log
(
"新请求233567456"
);
//
NetManager.ins.getShareContent(callback,activityCode,sceneCode,token);
NetManager
.
ins
.
getShareContent
(
callback
,
activityCode
,
sceneCode
,
token
);
window
[
'$'
].
ajax
({
//
window['$'].ajax({
type
:
"post"
,
//
type: "post",
url
:
"https://gameapi.suning.com/sngame-web/api/getShareGameInfo.do"
,
//
url: "https://gameapi.suning.com/sngame-web/api/getShareGameInfo.do",
dataType
:
"json"
,
//
dataType: "json",
data
:
{
//
data: {
activityCode
,
//
activityCode,
sceneCode
,
//
sceneCode,
token
//
token
},
//
},
async
:
true
,
//
async: true,
success
:
(
result
)
=>
{
//
success: (result) => {
callback
(
true
,
result
)
//
callback(true, result)
},
//
},
error
:
(
message
)
=>
{
//
error: (message) => {
callback
(
false
,
message
)
//
callback(false, message)
}
//
}
});
//
});
}
}
...
...
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