账户调整

This commit is contained in:
2023-02-08 20:57:17 +08:00
parent 668a387554
commit eb071d6546
5 changed files with 25 additions and 26 deletions

View File

@@ -1,22 +1,21 @@
import utils from './util'
//testURL
const BASE_URL = 'http://127.0.0.1:8080/wx';
const LOGIN_URL = 'https://api.weixin.qq.com/sns/jscode2session';
// const BASE_URL = 'http://127.0.0.1:8080/wx';
//devURL
// const BASE_URL = 'https://lmqhznn.goho.co/wx';
//prodURL
// const BASE_URL = 'https://www.qnforever.top/wx';
const BASE_URL = 'https://www.qnforever.top/wx';
function buildURL(url, needToken) {
let userId = wx.getStorageSync('userId');
if (!userId && url != '/user/login') {
wx.redirectTo({
url: '../myself/index'
})
wx.showLoading({
wx.showToast({
title: '请先登录',
mask: true,
duration: 2000
})
setTimeout(function () {
wx.hideLoading()
}, 2000)
return;
}
if (url != '/user/login'){