refactor: 统一API路径前缀并更新静态资源域名

- 将所有API路径从'/v2/miniprogram'统一为'/miniprogram'
- 更新静态资源域名从'http://jm.v0750.com'到'https://jm-static.v0750.com'
- 在utils/login.js中设置统一的baseUrl为'https://t-jm.v0750.com/v3'
- 移除不再使用的initial_url和baseUrl配置项
This commit is contained in:
2025-12-15 23:27:34 +08:00
parent 85ceb86058
commit d098203c87
22 changed files with 71 additions and 69 deletions

View File

@@ -11,11 +11,14 @@ function t() {
}
function n(a) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
var baseUrl = "https://t-jm.v0750.com/v3";
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
// a 是否 https, 如果不是自动补全
if (!/^https/.test(a)) {
a = 'https://t-jm.v0750.com' + a;
a = baseUrl + a;
}
// method 默认为 GET
@@ -92,7 +95,7 @@ function n(a) {
}
function c(e, a) {
console.log("appstart", e), o = a, n("https://t-jm.v0750.com/v2/miniprogram/index", {
console.log("appstart", e), o = a, n("/miniprogram/index", {
code: e
}, !0).then(function (e) {
var o = e.data;
@@ -103,7 +106,6 @@ function c(e, a) {
}
module.exports = {
initial_url: "https://t-jm.v0750.com/miniprogram",
login: t,
request: n,
pageStart: function (e) {
@@ -120,9 +122,8 @@ module.exports = {
c(res.code, e);
});
},
baseUrl: "https://t-jm.v0750.com/",
getDevicecode: function (e, a) {
o = e, n("https://t-jm.v0750.com/v2/miniprogram/identify/reload", a, !0).then(function (e) {
o = e, n("/miniprogram/identify/reload", a, !0).then(function (e) {
var a = e.data;
if (e.code == 200) {
o.globalData.deviceData = a || {};