|
|
@@ -426,12 +426,14 @@ async function handleLogin1(data) {
|
|
|
});
|
|
|
} else {
|
|
|
uni.removeStorageSync('isAdmin');
|
|
|
+ uni.removeStorageSync('isCompletion');
|
|
|
uni.removeStorageSync('isViewSkus');
|
|
|
uni.removeStorageSync('userAuth');
|
|
|
uni.setStorageSync('userAuth', res.data)
|
|
|
try {
|
|
|
let app = res.data.find(v => v.system == "service").modules.find(v => v.systemmodule == "wserve").apps.find(v => v.name == "wxchatserve").meta.auth.map(v => v.option);
|
|
|
uni.setStorageSync('isAdmin', app.includes('admin'));
|
|
|
+ uni.setStorageSync('isCompletion', app.includes('completion'));
|
|
|
uni.setStorageSync('isViewSkus', app.includes('skus'));
|
|
|
} catch (error) {
|
|
|
console.log(error)
|