|
|
@@ -14,7 +14,7 @@ function isLocalEnv() {
|
|
|
|
|
|
|
|
|
|
|
|
-window.apiType = "sit" // dev 本地测试 , sit 线上测试 uat 客户测试环境
|
|
|
+window.apiType = "sit" // dev 本地测试 , sit 线上测试 uat 客户测试环境 prod 正式环境
|
|
|
window.fetchUrl = ""
|
|
|
// window.fetchUrl = "http://172.21.9.236:8081"
|
|
|
|
|
|
@@ -25,6 +25,8 @@ if (window.apiType == "dev") {
|
|
|
window.fetchUrl = "http://172.21.9.236:8081"
|
|
|
} else if (window.apiType == "uat") {
|
|
|
window.fetchUrl = "http://172.21.12.247:8081"
|
|
|
+} else if(window.apiType == "prod"){
|
|
|
+ window.fetchUrl = "http://172.21.12.244:8081"
|
|
|
}
|
|
|
|
|
|
// api 前缀
|
|
|
@@ -208,7 +210,14 @@ function localEnvAppToken() {
|
|
|
tenantid: "jmuatierp",
|
|
|
accountId: "1609428936914108416",
|
|
|
}
|
|
|
- } else {
|
|
|
+ } else if(window.apiType == "prod") {
|
|
|
+ data = {
|
|
|
+ appId: "jsc",
|
|
|
+ appSecuret: '{Li$d73F13x"+ASb',
|
|
|
+ tenantid: "jmierp",
|
|
|
+ accountId: "1507155316804943872",
|
|
|
+ }
|
|
|
+ }else {
|
|
|
console.log("未知类型");
|
|
|
return
|
|
|
}
|
|
|
@@ -256,12 +265,24 @@ function getLocalEnvAccessToken() {
|
|
|
}
|
|
|
} else if (window.apiType == "uat") {
|
|
|
data = {
|
|
|
- appId: "jsc",
|
|
|
+ // appId: "jsc",
|
|
|
apptoken: localStorage.getItem("app_token"),
|
|
|
- appSecuret: "Cs?9HeKqacN%gnu3",
|
|
|
+ // appSecuret: "Cs?9HeKqacN%gnu3",
|
|
|
tenantid: "jmuatierp",
|
|
|
+ user: "17649834944",
|
|
|
+ usertype: "Mobile",
|
|
|
accountId: "1609428936914108416",
|
|
|
}
|
|
|
+ } else if(window.apiType == "prod") {
|
|
|
+ data = {
|
|
|
+ // appId: "jsc",
|
|
|
+ user: "18035133443",
|
|
|
+ usertype: "Mobile",
|
|
|
+ apptoken: localStorage.getItem("app_token"),
|
|
|
+ // appSecuret: '{Li$d73F13x"+ASb',
|
|
|
+ tenantid: "jmierp",
|
|
|
+ accountId: "1507155316804943872",
|
|
|
+ }
|
|
|
} else {
|
|
|
console.log("未知类型");
|
|
|
return
|