端口号

This commit is contained in:
yunkexin 2024-06-04 09:31:35 +08:00
parent bdad928638
commit 28cac0334c

View File

@ -1,79 +1,79 @@
const getServiceHost = api => { const getServiceHost = api => {
const apimodules = [{ const apimodules = [{
OP: 3116 OP: 7116
}, { }, {
BD: 3101 BD: 7101
}, { }, {
DD: 3102 DD: 7102
}, { }, {
EA: 3103 EA: 7103
}, { }, {
ED: 3104 ED: 7104
}, { }, {
EM: 3105 EM: 7105
}, { }, {
FC: 3106 FC: 7106
}, },
{ {
FM: 3107 FM: 7107
}, { }, {
KR: 3108 KR: 7108
}, { }, {
LG: 3109 LG: 7109
}, { }, {
MR: 3110 MR: 7110
}, { }, {
NW: 3111 NW: 7111
}, { }, {
PF: 3112 PF: 7112
}, { }, {
PM: 3113 PM: 7113
}, { }, {
QC: 3114 QC: 7114
}, { }, {
FW: 3115 FW: 7115
}, { }, {
OP: 3116 OP: 7116
}, },
{ {
HM: 3117 HM: 7117
}, { }, {
PP: 3118 PP: 7118
}, { }, {
FO: 3119 FO: 7119
}, { }, {
UT: 3177 UT: 7177
}, { }, {
BS: 3178 BS: 7178
}, { }, {
SC: 3179 SC: 7179
}, { }, {
TI: 3179 TI: 7179
}, { }, {
SE: 3179 SE: 7179
}, { }, {
AE: 3179 AE: 7179
}, { }, {
PT: 3179 PT: 7179
}, { }, {
LR: 3179 LR: 7179
}, { }, {
OG: 3179 OG: 7179
}, { }, {
PE: 3179 PE: 7179
}, { }, {
OH: 3179 OH: 7179
}, { }, {
CM: 3179 CM: 7179
}, { }, {
PR: 3179 PR: 7179
}, { }, {
DM: 3179 DM: 7179
}, { }, {
BI: 3179 BI: 7179
} }
] ]
let port = 3112 let port = 7112
for (let i = 0; i < apimodules.length; i++) { for (let i = 0; i < apimodules.length; i++) {
const apimodule = apimodules[i] const apimodule = apimodules[i]
const key = Object.keys(apimodule)[0] const key = Object.keys(apimodule)[0]
@ -99,7 +99,7 @@ if (process.env.CUSTOM_PLATFORM === "dev") {
}, },
uni_app_web_url: "", // uni_app_web_url: "", //
uni_app_web_api_url: "http://localhost", // 请求接口的地址 uni_app_web_api_url: "http://localhost", // 请求接口的地址
uni_app_web_source_url: "http://localhost:3199", // 资源地址 uni_app_web_source_url: "http://localhost:7199", // 资源地址
uni_app_web_local_api_url: "http://localhost", // 请求接口的地址 uni_app_web_local_api_url: "http://localhost", // 请求接口的地址
} }
} else if (process.env.CUSTOM_PLATFORM === "test") { } else if (process.env.CUSTOM_PLATFORM === "test") {
@ -112,7 +112,7 @@ if (process.env.CUSTOM_PLATFORM === "dev") {
}, },
uni_app_web_url: "", // uni_app_web_url: "", //
uni_app_web_api_url: "http://47.122.43.22", // 请求接口的地址 uni_app_web_api_url: "http://47.122.43.22", // 请求接口的地址
uni_app_web_source_url: "http://47.122.43.22:3199", // 资源地址 uni_app_web_source_url: "http://47.122.43.22:7199", // 资源地址
uni_app_web_local_api_url: "http://47.122.43.22", // 请求接口的地址 uni_app_web_local_api_url: "http://47.122.43.22", // 请求接口的地址
} }
} else } else
@ -125,7 +125,7 @@ if (process.env.CUSTOM_PLATFORM === "dev") {
}, },
uni_app_web_url: "", uni_app_web_url: "",
uni_app_web_api_url: APP_ENV === 'release' ? "http://xmmhe.com" : "http://47.122.43.22", uni_app_web_api_url: APP_ENV === 'release' ? "http://xmmhe.com" : "http://47.122.43.22",
uni_app_web_source_url: APP_ENV === 'release' ? "http://xmmhe.com:3199" : "http://47.122.43.22:3199", uni_app_web_source_url: APP_ENV === 'release' ? "http://xmmhe.com:7199" : "http://47.122.43.22:3199",
uni_app_web_local_api_url: APP_ENV === 'release' ? "http://xmmhe.com" : "http://47.122.43.22" //打包测试: 47.122.43.22 开发可 localhost uni_app_web_local_api_url: APP_ENV === 'release' ? "http://xmmhe.com" : "http://47.122.43.22" //打包测试: 47.122.43.22 开发可 localhost
} }