环境token
This commit is contained in:
@@ -118,7 +118,13 @@ Page({
|
||||
app.imLogout();
|
||||
url = "/Pages/yaoshi/home/home";
|
||||
}
|
||||
let token = wx.getStorageSync('AUTH_TOKEN_'+usertype);
|
||||
let token = '';
|
||||
const { envVersion } = wx.getAccountInfoSync().miniProgram;
|
||||
if(envVersion=='release'){
|
||||
token= wx.getStorageSync('AUTH_TOKEN_'+usertype)
|
||||
}else{
|
||||
token= wx.getStorageSync('DEV_AUTH_TOKEN_'+usertype)
|
||||
}
|
||||
console.log(token);
|
||||
console.log(url);
|
||||
if(token){
|
||||
|
||||
Reference in New Issue
Block a user