日照项目的居民端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

40 lines
1.6 KiB

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.config = exports.apiUrl = exports.getApiUrl = void 0;
function getApiUrl(forceEnv) {
if (forceEnv === void 0) { forceEnv = ""; }
var mpConfig = wx.getAccountInfoSync()["miniProgram"];
var envVersion = typeof mpConfig.envVersion !== "undefined"
? mpConfig.envVersion
: "release";
if (forceEnv === "develop" || (!forceEnv && envVersion === "develop")) {
return "http://58.59.63.11:8888/api/";
//老产品开发环境
// return "http://192.168.1.140/api/";
}
else if (forceEnv === "trial" || (!forceEnv && envVersion === "trial")) {
return "http://58.59.63.11:8888/api/";
}
else {
var extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {};
if (extConfig.extAppid) {
if (extConfig.extAppid == "wx2f89f36484439d54") {
return "https://epmet-cloud-py.elinkservice.cn/api/";
}
else if (extConfig.extAppid == "wxb50debf05ff2461e") {
return "https://epmet-panshi.elinkservice.cn/api/";
} if (extConfig.extAppid == "wx281af2aaef82f411") {
return "https://zhsq.shuzirizhao.cn/api/";
}
}
return "https://epmet-cloud.elinkservice.cn/api/";
}
}
exports.getApiUrl = getApiUrl;
exports.apiUrl = getApiUrl("");
exports.config = {
apiUrl: exports.apiUrl,
qqMapKey: "FEEBZ-ZQALK-QH2JI-A3VIV-M4IAH-UBBNG",
qqMapSKey: "i6GBTClsHhl2VKAGMy4UNquNTLkrXrTg",
};
exports.default = exports.config;