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
d1fff4f9
Commit
d1fff4f9
authored
May 14, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
埋点暂存
parent
60dccbb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+13
-6
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
d1fff4f9
...
...
@@ -1476,16 +1476,22 @@ export class NetManager extends ABNetManager {
callback
:
callback
};
try
{
if
(
window
[
'SNNativeClient'
]){
// console.log("苏宁原生测试",window['baseApi']);
if
(
window
[
'baseApi'
]){
console
.
log
(
"苏宁原生测试"
,
GFun
.
isIOS
);
console
.
log
(
window
[
'SNNativeClient'
]);
window
[
'SNNativeClient'
].
getClientInfo
(
function
(
res
){
console
.
log
(
"啦啦啦SNNativeClientFunc"
,
res
);
window
[
'baseApi'
].
getClientInfo
(
function
(
res
){
console
.
log
(
"啦啦啦baseApi----info"
,
res
);
if
(
res
){
var
resdata
;
if
(
typeof
res
==
"string"
){
resdata
=
JSON
.
parse
(
res
);
}
else
{
resdata
=
res
;
}
if
(
GFun
.
isIOS
){
deviceId
=
res
.
imsi
||
''
;
deviceId
=
res
data
.
imsi
||
''
;
}
else
{
deviceId
=
res
.
imei
||
''
;
deviceId
=
res
data
.
imei
||
''
;
}
}
console
.
log
(
'新增deviceId'
,
deviceId
);
...
...
@@ -1496,6 +1502,7 @@ export class NetManager extends ABNetManager {
this
.
send
(
net
);
}
}
catch
(
e
){
console
.
log
(
'一般获取'
);
this
.
send
(
net
);
}
}
...
...
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