Browse Source

公立校版内置参数修改

zhanghe 6 years ago
parent
commit
6ee24ed7c6

+ 2 - 2
src/res/values/api.json

@@ -1,4 +1,4 @@
 {
-    "api_url_kid": "http://kid-app.lingjiao.cn",
-    "api_url": "http://tt-web.api.ai160.com"
+    "api_url": "https://school.lingjiao.cn",
+    "api_url_test": "http://tt-web.api.ai160.com"
 }

+ 1 - 1
src/stage/index/scene/CLScene.js

@@ -162,7 +162,7 @@ class CLScene extends scene {
             periphery: 'PERIPHERY',
             resource: 'RESOURCE',
             training: 'TRAINING',
-        }[this.sceneType] || 'DEFAULT';
+        }[this.sceneType] || 'RESOURCE';
 
         APIClient.getTagListByGroupCode(type, (isTrue, res) => {
             if (!isTrue) { return; }

+ 1 - 1
src/util/API/AJAXHelper.js

@@ -62,7 +62,7 @@ class AJAXHelper {
 		xmlHttpReq.setRequestHeader('uid', uid);
 		xmlHttpReq.setRequestHeader('sign', sign);
 		xmlHttpReq.setRequestHeader('terminal', platform);
-		xmlHttpReq.setRequestHeader('merchant','baby');
+		xmlHttpReq.setRequestHeader('merchant','school');
 		xmlHttpReq.setRequestHeader('requestId', requestId);
 		xmlHttpReq.setRequestHeader('Authentication', sign); //header中增加Authentication以兼容老版本
 		xmlHttpReq.setRequestHeader('Content-Type', 'application/' + (method == 'POST' || method == 'PUT' ? 'json' : 'text'));

+ 3 - 3
src/util/API/APIClient.js

@@ -69,9 +69,9 @@ class APIClient {
 	// 获取标签组下的标签列表
 	static getTagListByGroupCode(type, callback) {
 		const typeToCode = {
-			'RESOURCE': 'BABY_RESOURCE',
-			'TRAINING': 'BABY_TRAINING',
-			'PERIPHERY': 'BABY_SUPPORT',
+			'RESOURCE': 'SCHOOL_RESOURCE',
+			'TRAINING': 'SCHOOL_TRAINING',
+			'PERIPHERY': 'SCHOOL_SUPPORT',
 		};
 		let params = APIClient.addCacheParam({});
 		AJAXHelper.get(`/tagGroup/${typeToCode[type]}`, params, callback);