Commit e7619d87 authored by liujiangnan's avatar liujiangnan

feat

parent d231a1a7
...@@ -10,8 +10,9 @@ export default class NewClass extends middleLayerBase { ...@@ -10,8 +10,9 @@ export default class NewClass extends middleLayerBase {
(<any>window).courseware.getData = async (callback) => { (<any>window).courseware.getData = async (callback) => {
let data = null; let data = null;
if (this.courseItem && this.courseItem.data) { if (this.courseItem && this.courseItem.data) {
data = JSON.parse(this.courseItem.data); data = this.courseItem.data.replace("http://", "https://")
this.log("===成功调用getData===" + this.courseItem.data); data = JSON.parse(data);
this.log("===成功调用getData===" + data);
} }
callback && callback(data); callback && callback(data);
} }
...@@ -852,7 +853,7 @@ export default class NewClass extends middleLayerBase { ...@@ -852,7 +853,7 @@ export default class NewClass extends middleLayerBase {
async start() { async start() {
this.node.zIndex = 9999; this.node.zIndex = 9999;
cc.game.addPersistRootNode(this.node); cc.game.addPersistRootNode(this.node);
await this.checkVersion(); // await this.checkVersion();
if (this.isDev == 1) { if (this.isDev == 1) {
cc.find(`middleLayer/debug`).active = true; cc.find(`middleLayer/debug`).active = true;
......
...@@ -90,14 +90,14 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -90,14 +90,14 @@ export abstract class middleLayerBase extends cc.Component {
const { isDev } = JSON.parse(engineInfo); const { isDev } = JSON.parse(engineInfo);
if (isDev == 1) { if (isDev == 1) {
this.ORG_ID = 513; this.ORG_ID = 513;
this.DOMAIN = "http://staging-teach.cdn.ireadabc.com/"; this.DOMAIN = "https://staging-teach.cdn.ireadabc.com/";
callback && callback('http://staging-openapi.iteachabc.com'); callback && callback('https://staging-openapi.iteachabc.com');
return 'http://staging-openapi.iteachabc.com'; return 'https://staging-openapi.iteachabc.com';
} else { } else {
this.ORG_ID = 512; this.ORG_ID = 512;
this.DOMAIN = "http://teach.cdn.ireadabc.com/"; this.DOMAIN = "https://teach.cdn.ireadabc.com/";
callback && callback('http://openapi.iteachabc.com'); callback && callback('https://openapi.iteachabc.com');
return 'http://openapi.iteachabc.com'; return 'https://openapi.iteachabc.com';
} }
} }
......
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