切换正式环境接口

This commit is contained in:
Double-_-Z 2025-08-05 18:00:24 +08:00
parent 0c108e31f3
commit b658517c5a
2 changed files with 14 additions and 26 deletions

View File

@ -5,26 +5,26 @@ let BASE_URL = '/aerocraftAdminApi';
// #endif // #endif
// #ifdef APP-PLUS ||MP // #ifdef APP-PLUS ||MP
let BASE_URL = 'http://8.138.171.103/aerocraftAdminApi';// 测试环境 let BASE_URL = 'http://8.138.171.103/aerocraftAdminApi';// 测试环境
// let BASE_URL = 'https://www.ylemai.cn/aerocraftAdminApi';// 正式环境 // let BASE_URL = 'https://webapi.aishangfeixing.com/aerocraftAdminApi';// 正式环境
// #endif // #endif
let IP = 'http://8.138.171.103/';// 测试环境 let IP = 'http://8.138.171.103/';// 测试环境
// let IP = 'https://www.ylemai.cn/';// 正式环境 // let IP = 'https://adminapi.aishangfeixing.com/';// 正式环境
let FILE_URL = IP+'static/'; let FILE_URL = IP+'static/';
// 阿里OSS地址 // 阿里OSS地址
let ALIOSS_URL = 'http://guojunjie.oss-cn-hangzhou.aliyuncs.com'; // let ALIOSS_URL = 'http://guojunjie.oss-cn-hangzhou.aliyuncs.com';
let OTHER_ALIOSS_URL = 'http://pixel-ai-file-test.oss-cn-guangzhou.aliyuncs.com';// 测试环境 // let OTHER_ALIOSS_URL = 'http://pixel-ai-file-test.oss-cn-guangzhou.aliyuncs.com';// 测试环境
let ANOTHER_ALIOSS_URL = 'http://pixel-ai-file.oss-cn-guangzhou.aliyuncs.com';// 正式环境 // let ANOTHER_ALIOSS_URL = 'http://pixel-ai-file.oss-cn-guangzhou.aliyuncs.com';// 正式环境
let ALIOSS_ASYNC_URL = "http://dashscope-result-bj.oss-cn-beijing.aliyuncs.com";// 异步url // let ALIOSS_ASYNC_URL = "http://dashscope-result-bj.oss-cn-beijing.aliyuncs.com";// 异步url
const configService = { const configService = {
apiUrl: BASE_URL, apiUrl: BASE_URL,
ip: IP, ip: IP,
fileUrl: FILE_URL, fileUrl: FILE_URL,
aliUrl: ALIOSS_URL, // aliUrl: ALIOSS_URL,
otherAliUrl: OTHER_ALIOSS_URL, // otherAliUrl: OTHER_ALIOSS_URL,
anotherAliUrl: ANOTHER_ALIOSS_URL, // anotherAliUrl: ANOTHER_ALIOSS_URL,
aliAsyncUrl: ALIOSS_ASYNC_URL, // aliAsyncUrl: ALIOSS_ASYNC_URL,
}; };
export default configService export default configService

View File

@ -135,29 +135,17 @@
"devServer" : { "devServer" : {
"disableHostCheck" : true, "disableHostCheck" : true,
"proxy" : { "proxy" : {
"/pixelApi" : {
"target" : "http://8.138.171.103/pixelApi", //
// "target" : "https://www.ylemai.cn/pixelApi",//
"changeOrigin" : true,
"secure" : true,
"ws" : false,
"pathRewrite" : {
"^/pixelApi" : ""
}
},
"/upload" : { "/upload" : {
"target" : "http://8.138.171.103", // "target" : "http://8.138.171.103", //
// "target" : "https://www.ylemai.cn",// // "target" : "https://webapi.aishangfeixing.com",//
"changeOrigin" : true, "changeOrigin" : true,
"secure" : true, "secure" : true,
"ws" : false "ws" : false
}, },
"/static" : { "/static" : {
"target" : "http://8.138.171.103", // // "target" : "http://8.138.171.103", //
// "target" : "https://webapi.aishangfeixing.com",//
// "target" : "https://www.ylemai.cn",//
"changeOrigin" : true, "changeOrigin" : true,
"secure" : true, "secure" : true,
"ws" : false "ws" : false
@ -165,7 +153,7 @@
"/aiupload" : { "/aiupload" : {
"target" : "http://8.138.171.103/upload", // "target" : "http://8.138.171.103/upload", //
// "target" : "https://www.ylemai.cn/upload",// // "target" : "https://webapi.aishangfeixing.com/upload",//
"changeOrigin" : true, "changeOrigin" : true,
"secure" : true, "secure" : true,
"ws" : false, "ws" : false,