fix: 微信登录补充保存username和role
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Agent
2026-04-04 07:35:21 +00:00
parent 756444ef2b
commit d12eea7693
10597 changed files with 817047 additions and 3 deletions

39
node_modules/licia/detectOs.js generated vendored Normal file
View File

@@ -0,0 +1,39 @@
var isBrowser = require('./isBrowser');
var isNode = require('./isNode');
exports = function(ua) {
if (!ua && isBrowser) {
ua = navigator.userAgent;
}
function detect(keyword) {
return ua.indexOf(keyword) > -1;
}
if (ua) {
ua = ua.toLowerCase();
if (detect('windows phone')) return 'windows phone';
if (detect('win')) return 'windows';
if (detect('android')) return 'android';
if (detect('ipad') || detect('iphone') || detect('ipod')) return 'ios';
if (detect('mac')) return 'os x';
if (detect('linux')) return 'linux';
} else if (isNode) {
var _process = process,
platform = _process.platform,
env = _process.env;
if (
platform === 'win32' ||
env.OSTYPE === 'cygwin' ||
env.OSTYPE === 'msys'
) {
return 'windows';
}
if (platform === 'darwin') {
return 'os x';
}
if (platform === 'linux') {
return 'linux';
}
}
return 'unknown';
};
module.exports = exports;