feat: 后端版本迁移修改

This commit is contained in:
Blizzard
2026-05-24 01:38:28 +08:00
parent 058a575e10
commit f8d71ee800
29 changed files with 304 additions and 291 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ App({
wx.login({
success: res => {
if (res.code) {
request.get('/auth/miniLogin', { code: res.code }).then(async (data) => {
request.post('/auth/miniLogin', { code: res.code, clientId: 'sundynix-plant' }).then(async (data) => {
const token = data.token;
if (token && typeof token === 'string') {
@@ -25,7 +25,7 @@ App({
if (this._resolveLogin) this._resolveLogin(token);
// Background Profile Update
request.get('/profile/detail').then(userDetail => {
request.get('/plant/profile/detail').then(userDetail => {
if (userDetail) {
wx.setStorageSync('userInfo', userDetail);
this.globalData.userInfo = userDetail;