Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
崔立强
db-game-template
Commits
35a8f01c
Commit
35a8f01c
authored
Apr 07, 2021
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新提交修改
parent
dd319b52
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+5
-5
config.js
mock/config.js
+3
-0
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
35a8f01c
...
@@ -414,7 +414,7 @@ export class NetManager extends ABNetManager {
...
@@ -414,7 +414,7 @@ export class NetManager extends ABNetManager {
score
:
score
,
score
:
score
,
gameData
:
gameData
,
gameData
:
gameData
,
sgin
:
sign
,
sgin
:
sign
,
dynamicData
:
JSON
.
stringify
(
dynamicData
)
//
dynamicData: JSON.stringify(dynamicData)
};
};
...
@@ -457,19 +457,19 @@ export class NetManager extends ABNetManager {
...
@@ -457,19 +457,19 @@ export class NetManager extends ABNetManager {
gameData
,
gameData
,
sign
,
sign
,
dynamicData
,
dynamicData
,
rankId
}
}
if
(
rankId
)
{
if
(
rankId
)
{
param
.
rankId
=
rankId
;
param
.
rankId
=
rankId
;
pp
[
"rankId"
]
=
rankId
;
pp
[
"rankId"
]
=
rankId
;
}
}
console
.
error
(
"请求头处理submit===》"
,
JSON
.
stringify
(
pp
));
console
.
error
(
"请求头处理submit===》"
,
JSON
.
stringify
(
pp
));
//加密拼参数
//加密拼参数
pp
=
encrypt
(
pp
);
pp
=
encrypt
(
pp
);
console
.
error
(
"请求头处理submit加密后===》"
,
JSON
.
stringify
(
pp
));
console
.
error
(
"请求头处理submit加密后===》"
,
JSON
.
stringify
(
pp
));
const
net
:
INetData
=
{
const
net
:
INetData
=
{
name
:
'ngameSubmit'
,
name
:
'ngameSubmit'
,
uri
:
'/hdtool/recon/ngame/ngameSubmit'
,
// uri: '/hdtool/recon/ngame/ngameSubmit',
uri
:
'/hdtool/refactor/ngame/submit'
,
type
:
'post'
,
type
:
'post'
,
dataType
:
'json'
,
dataType
:
'json'
,
param
:
param
,
param
:
param
,
...
...
mock/config.js
View file @
35a8f01c
...
@@ -55,6 +55,9 @@ const config = {
...
@@ -55,6 +55,9 @@ const config = {
'/hdtool/recon/ngame/ngameSubmit'
:
{
'/hdtool/recon/ngame/ngameSubmit'
:
{
data
:
'./json/ngameSubmit.json'
data
:
'./json/ngameSubmit.json'
},
},
'/hdtool/refactor/ngame/submit'
:
{
data
:
'./json/ngameSubmit.json'
},
'/hdtool/recon/ngame/datapash'
:
{
'/hdtool/recon/ngame/datapash'
:
{
data
:
'./datapash.json'
data
:
'./datapash.json'
},
},
...
...
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