Commit 1cc00fbf by zhujian

fix

parent d6e770c5
......@@ -30,35 +30,21 @@ class LiveCourseOpt extends React.Component {
const { isMac } = this.state;
const BRAND = process.env.BRAND;
// 判断学员系统
if (BRAND == 'syoo') {
var url;
if (!isMac) {
url = 'https://cdn.xiaomai5.com/ykt-win.exe'
} else {
url = 'https://cdn.xiaomai5.com/ykt-mac.dmg'
}
const a = document.createElement("a");
document.body.appendChild(a);
a.href = url;
a.click();
document.body.removeChild(a);
let platform;
if (!isMac) {
platform = 1
} else {
let platform;
if (!isMac) {
platform = 1
} else {
platform = 4
}
BaseService
.getLastedVersion({ model: 5, platform })
.then((res) => {
const a = document.createElement("a");
document.body.appendChild(a);
a.href = res.result.releaseUrl;
a.click();
document.body.removeChild(a);
})
platform = 4
}
BaseService
.getLastedVersion({ model: 5, platform })
.then((res) => {
const a = document.createElement("a");
document.body.appendChild(a);
a.href = res.result.releaseUrl;
a.click();
document.body.removeChild(a);
})
}
render() {
......
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