gree_leran/unpackage/dist/dev/mp-weixin/utils/Auth.js

12 lines
315 B
JavaScript
Raw Normal View History

2024-06-16 01:04:56 +00:00
"use strict";
const common_vendor = require("../common/vendor.js");
2024-06-20 15:36:19 +00:00
var Admin = "rds-token";
2024-06-16 01:04:56 +00:00
function getToken() {
return common_vendor.index.getStorageSync(Admin);
}
function isLogin() {
return common_vendor.index.getStorageSync(Admin) ? true : false;
}
exports.getToken = getToken;
exports.isLogin = isLogin;