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
bd17bc29
Commit
bd17bc29
authored
May 28, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改cityCode默认为空
parent
eec6a27d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+3
-1
StartScene.ts
egret/src/startScene/StartScene.ts
+3
-3
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
bd17bc29
...
@@ -1477,6 +1477,7 @@ export class NetManager extends ABNetManager {
...
@@ -1477,6 +1477,7 @@ export class NetManager extends ABNetManager {
hideMsg
:
true
,
hideMsg
:
true
,
callback
:
callback
callback
:
callback
};
};
console
.
log
(
"开始获取广告"
);
// this.changeCookieCity("测试写入city");
// this.changeCookieCity("测试写入city");
try
{
try
{
// console.log("苏宁原生测试",window['baseApi']);
// console.log("苏宁原生测试",window['baseApi']);
...
@@ -1503,10 +1504,11 @@ export class NetManager extends ABNetManager {
...
@@ -1503,10 +1504,11 @@ export class NetManager extends ABNetManager {
//检查修改cookie
//检查修改cookie
// this.changeCookieCity(cityCode);
// this.changeCookieCity(cityCode);
net
.
param
.
deviceId
=
deviceId
;
net
.
param
.
deviceId
=
deviceId
;
net
.
param
.
cityCode
=
cityCode
;
net
.
param
.
cityCode
=
""
;
//
cityCode;
this
.
send
(
net
);
this
.
send
(
net
);
}.
bind
(
this
));
}.
bind
(
this
));
}
else
{
}
else
{
console
.
log
(
"没有baseApi"
);
this
.
send
(
net
);
this
.
send
(
net
);
}
}
}
catch
(
e
){
}
catch
(
e
){
...
...
egret/src/startScene/StartScene.ts
View file @
bd17bc29
...
@@ -56,9 +56,9 @@ export default class StartScene extends Scene {
...
@@ -56,9 +56,9 @@ export default class StartScene extends Scene {
// console.log(data);
// console.log(data);
if
(
data
&&
Array
.
isArray
(
data
))
{
if
(
data
&&
Array
.
isArray
(
data
))
{
console
.
log
(
"测试mv0"
,
data
[
0
]);
//
console.log("测试mv0",data[0]);
console
.
log
(
"测试mv1"
,
data
[
1
]);
//
console.log("测试mv1",data[1]);
console
.
log
(
"测试mv2"
,
data
[
2
]);
//
console.log("测试mv2",data[2]);
var
titlekey
=
"d103b7a157cd3646ea65ba8ea871828e"
;
var
titlekey
=
"d103b7a157cd3646ea65ba8ea871828e"
;
data
[
1
].
setImage
(
titlekey
,
'addhbimg_png'
);
data
[
1
].
setImage
(
titlekey
,
'addhbimg_png'
);
...
...
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