From f9b8be71701de6f419e560416cbde80641b3f3a0 Mon Sep 17 00:00:00 2001 From: lzx_win <2602107437@qq.com> Date: Thu, 24 Apr 2025 16:35:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.js | 4 ++-- manifest.json | 2 +- store/modules/user.js | 2 +- utils/getUrl.js | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config.js b/config.js index 2362f4d..83add4c 100644 --- a/config.js +++ b/config.js @@ -2,8 +2,8 @@ module.exports = { // baseUrl: 'https://api.catmdogd.com/prod-api', // baseUrl: 'https://api-test.catmdogd.com/test-api', - // baseUrl: 'https://pet-admin.hhlm1688.com/api', - baseUrl: 'http://h5.xzaiyp.top', + baseUrl: 'https://pet-admin.hhlm1688.com/api', + // baseUrl: 'http://h5.xzaiyp.top', // 应用信息 appInfo: { // 应用名称 diff --git a/manifest.json b/manifest.json index fa21255..2203806 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "CMDF", - "appid" : "__UNI__A764ECB", + "appid" : "__UNI__6B015BD", "description" : "猫妈狗爸", "versionName" : "1.1.0", "versionCode" : "100", diff --git a/store/modules/user.js b/store/modules/user.js index 2e918f9..0c6b418 100644 --- a/store/modules/user.js +++ b/store/modules/user.js @@ -74,7 +74,7 @@ const user = { getInfo().then(res => { const user = res.user const avatar = (user == null || user.avatar == "" || user.avatar == null) ? - require("@/static/images/profile.jpg") : baseUrl + user.avatar + "": baseUrl + user.avatar const username = (user == null || user.userName == "" || user.userName == null) ? "" : user.userName if (res.roles && res.roles.length > 0) { diff --git a/utils/getUrl.js b/utils/getUrl.js index 4f2dcaa..cf45efc 100644 --- a/utils/getUrl.js +++ b/utils/getUrl.js @@ -5,10 +5,10 @@ current = accountInfo.miniProgram.envVersion; const api={ - develop:"http://h5.xzaiyp.top", + develop:"https://pet-admin.hhlm1688.com/api", // develop:"https://api-test.catmdogd.com/test-api", - trial:"https://api-test.catmdogd.com/test-api", - release:"https://api.catmdogd.com/prod-api", + trial:"https://pet-admin.hhlm1688.com/api", + release:"https://pet-admin.hhlm1688.com/api", } const currentUrl = api[current];