|
@@ -1,6 +1,6 @@
|
|
|
var request = require('request');
|
|
|
var cryptoJS = require("crypto-js");
|
|
|
-var domainName = "tt-web.api.ai160.com";
|
|
|
+var httpStr = "https://web-winapp.lingjiao.cn";
|
|
|
var mac = require('getmac');//获取mac地址
|
|
|
|
|
|
var macAddressStr = "";
|
|
@@ -37,7 +37,7 @@ class LjApiHelper
|
|
|
*/
|
|
|
static getApiForQueryCourse(lessonId, courseId, eid)
|
|
|
{
|
|
|
- var http = "http://"+domainName+"/lesson/" + lessonId;
|
|
|
+ var http = httpStr+"/lesson/" + lessonId;
|
|
|
http += "?courseId=" + courseId
|
|
|
http += "&eid=" + eid
|
|
|
http += "&cache=true";
|
|
@@ -53,7 +53,7 @@ class LjApiHelper
|
|
|
*/
|
|
|
static getApiForAddDownload(lessonId,courseId,resTotal,data)
|
|
|
{
|
|
|
- return "http://"+domainName+"/callback/download/add?lessonId=" + lessonId+"&courseId="+courseId+"&resTotal="+resTotal+"&resSize=0&mac="+macAddressStr;
|
|
|
+ return httpStr+"/callback/download/add?lessonId=" + lessonId+"&courseId="+courseId+"&resTotal="+resTotal+"&resSize=0&mac="+macAddressStr;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -64,7 +64,7 @@ class LjApiHelper
|
|
|
*/
|
|
|
static getApiForDelDownload(lessonId,data)
|
|
|
{
|
|
|
- return "http://"+domainName+"/callback/download/delete?lessonId=" + lessonId+"&mac="+macAddressStr;
|
|
|
+ return httpStr+"/callback/download/delete?lessonId=" + lessonId+"&mac="+macAddressStr;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -74,7 +74,7 @@ class LjApiHelper
|
|
|
*/
|
|
|
static getApiForUpdateResSize(lessonId)
|
|
|
{
|
|
|
- return "http://"+domainName+"/callback/download/update/resource/size?lessonId=" + lessonId+"&mac="+macAddressStr;
|
|
|
+ return httpStr+"/callback/download/update/resource/size?lessonId=" + lessonId+"&mac="+macAddressStr;
|
|
|
}
|
|
|
|
|
|
}
|