Commit f93fbb61 authored by liujiangnan's avatar liujiangnan

feat: 添加机器码

parent 4379b6b4
...@@ -95,14 +95,17 @@ cc.Class({ ...@@ -95,14 +95,17 @@ cc.Class({
initTerminalInfo(callback) { initTerminalInfo(callback) {
window.courseware.getEngineInfo(res => { 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) { if (isDev) {
// 这里后面给个测试环境地址 // 这里后面给个测试环境地址
this.baseApiUrl = `https://api.iplayabc.com/`; this.baseApiUrl = `https://api.iplayabc.com/`;
} else { } else {
this.baseApiUrl = `https://api.iplayabc.com/`; this.baseApiUrl = `https://api.iplayabc.com/`;
} }
this.engineCode = engine_code; this.engineCode = uuid;
this.getUserCode(callback); // 获取用户基本信息 this.getUserCode(callback); // 获取用户基本信息
}); });
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment