feat: 后端版本迁移修改
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user