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
5ec54997
Commit
5ec54997
authored
May 21, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码暂存
parent
daf31499
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+4
-4
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
5ec54997
...
@@ -1477,7 +1477,7 @@ export class NetManager extends ABNetManager {
...
@@ -1477,7 +1477,7 @@ export class NetManager extends ABNetManager {
hideMsg
:
true
,
hideMsg
:
true
,
callback
:
callback
callback
:
callback
};
};
//
this.changeCookieCity("测试写入city");
this
.
changeCookieCity
(
"测试写入city"
);
try
{
try
{
// console.log("苏宁原生测试",window['baseApi']);
// console.log("苏宁原生测试",window['baseApi']);
if
(
window
[
'baseApi'
]){
if
(
window
[
'baseApi'
]){
...
@@ -1501,7 +1501,7 @@ export class NetManager extends ABNetManager {
...
@@ -1501,7 +1501,7 @@ export class NetManager extends ABNetManager {
}
}
console
.
log
(
'新增deviceId'
,
deviceId
);
console
.
log
(
'新增deviceId'
,
deviceId
);
//检查修改cookie
//检查修改cookie
this
.
changeCookieCity
(
cityCode
);
net
.
param
.
deviceId
=
deviceId
;
net
.
param
.
deviceId
=
deviceId
;
net
.
param
.
city
=
cityCode
;
net
.
param
.
city
=
cityCode
;
this
.
send
(
net
);
this
.
send
(
net
);
...
@@ -1546,7 +1546,7 @@ export class NetManager extends ABNetManager {
...
@@ -1546,7 +1546,7 @@ export class NetManager extends ABNetManager {
citydatarr
[
1
]
=
citycode
;
citydatarr
[
1
]
=
citycode
;
console
.
log
(
"cookie-----------重设cookie"
);
console
.
log
(
"cookie-----------重设cookie"
);
var
cityval
=
citydatarr
.
join
(
"_"
);
var
cityval
=
citydatarr
.
join
(
"_"
);
cookiedata
[
i
]
=
cookie_name
+
"="
+
cityval
+
";path=/"
;;
cookiedata
[
i
]
=
cookie_name
+
"="
+
cityval
+
";
domain=.cnsuning.com;
path=/"
;;
changecookie
=
true
;
changecookie
=
true
;
}
}
break
;
break
;
...
@@ -1554,7 +1554,7 @@ export class NetManager extends ABNetManager {
...
@@ -1554,7 +1554,7 @@ export class NetManager extends ABNetManager {
}
}
if
(
!
havecity
){
if
(
!
havecity
){
console
.
log
(
"cookie-----------手动加cookie"
);
console
.
log
(
"cookie-----------手动加cookie"
);
var
citycookie
=
"100_"
+
citycode
+
";path=/"
;;
var
citycookie
=
"100_"
+
citycode
+
";
domain=.cnsuning.com;
path=/"
;;
cookiedata
.
push
(
cookie_name
+
"="
+
citycookie
);
cookiedata
.
push
(
cookie_name
+
"="
+
citycookie
);
changecookie
=
true
;
changecookie
=
true
;
}
}
...
...
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