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

31
node_modules/licia/ms.js generated vendored Normal file
View File

@@ -0,0 +1,31 @@
var toNum = require('./toNum');
var isStr = require('./isStr');
exports = function(str) {
if (isStr(str)) {
var match = str.match(regStrTime);
if (!match) return 0;
return toNum(match[1]) * factor[match[2] || 'ms'];
} else {
var num = str;
var suffix = 'ms';
for (var i = 0, len = suffixList.length; i < len; i++) {
if (num >= factor[suffixList[i]]) {
suffix = suffixList[i];
break;
}
}
return +(num / factor[suffix]).toFixed(2) + suffix;
}
};
var factor = {
ms: 1,
s: 1000
};
factor.m = factor.s * 60;
factor.h = factor.m * 60;
factor.d = factor.h * 24;
factor.y = factor.d * 365.25;
var suffixList = ['y', 'd', 'h', 'm', 's'];
var regStrTime = /^((?:\d+)?\.?\d+) *(s|m|h|d|y)?$/;
module.exports = exports;