Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_iplayabc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
middleLayer_for_iplayabc
Commits
f93fbb61
Commit
f93fbb61
authored
3 years ago
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加机器码
parent
4379b6b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
middleLayer.js
assets/middleLayer_for_iplayabc/script/middleLayer.js
+5
-2
No files found.
assets/middleLayer_for_iplayabc/script/middleLayer.js
View file @
f93fbb61
...
...
@@ -95,14 +95,17 @@ cc.Class({
initTerminalInfo
(
callback
)
{
window
.
courseware
.
getEngineInfo
(
res
=>
{
const
{
isDev
,
engine_code
}
=
JSON
.
parse
(
res
);
const
{
isDev
,
uuid
}
=
JSON
.
parse
(
res
);
console
.
log
(
'
-----------------
'
);
console
.
log
(
`isDev===
${
isDev
}
uuid===
${
uuid
}
`
);
console
.
log
(
'
-----------------
'
);
if
(
isDev
)
{
// 这里后面给个测试环境地址
this
.
baseApiUrl
=
`https://api.iplayabc.com/`
;
}
else
{
this
.
baseApiUrl
=
`https://api.iplayabc.com/`
;
}
this
.
engineCode
=
engine_code
;
this
.
engineCode
=
uuid
;
this
.
getUserCode
(
callback
);
// 获取用户基本信息
});
},
...
...
This diff is collapsed.
Click to expand it.
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