Bladeren bron

21世纪出版社版本

zhanghe 6 jaren geleden
bovenliggende
commit
e01968d57e
2 gewijzigde bestanden met toevoegingen van 2 en 3 verwijderingen
  1. 1 1
      src/res/values/api.json
  2. 1 2
      src/util/API/AJAXHelper.js

+ 1 - 1
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://21st-winapp.lingjiao.cn"
 }

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

@@ -61,10 +61,9 @@ class AJAXHelper {
 		xmlHttpReq.setRequestHeader('eid', eid);
 		xmlHttpReq.setRequestHeader('uid', uid);
 		xmlHttpReq.setRequestHeader('sign', sign);
-		xmlHttpReq.setRequestHeader('merchant', 'baby');
+		xmlHttpReq.setRequestHeader('merchant', '21st');
 		xmlHttpReq.setRequestHeader('terminal', platform);
 		xmlHttpReq.setRequestHeader('requestId', requestId);
-		xmlHttpReq.setRequestHeader('merchant', 'baby');
 		xmlHttpReq.setRequestHeader('Authentication', sign); //header中增加Authentication以兼容老版本
 		xmlHttpReq.setRequestHeader('Content-Type', 'application/' + (method == 'POST' || method == 'PUT' ? 'json' : 'text'));
 		//构造请求体