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

40
node_modules/licia/hslToRgb.js generated vendored Normal file
View File

@@ -0,0 +1,40 @@
exports = function(hsl) {
var h = hsl[0] / 360;
var s = hsl[1] / 100;
var l = hsl[2] / 100;
var ret = [];
var t2;
var t3;
var val;
if (hsl[3]) ret[3] = hsl[3];
if (s === 0) {
val = round(l * 255);
ret[0] = ret[1] = ret[2] = val;
return ret;
}
if (l < 0.5) {
t2 = l * (1 + s);
} else {
t2 = l + s - l * s;
}
var t1 = 2 * l - t2;
for (var i = 0; i < 3; i++) {
t3 = h + (1 / 3) * -(i - 1);
if (t3 < 0) t3++;
if (t3 > 1) t3--;
if (6 * t3 < 1) {
val = t1 + (t2 - t1) * 6 * t3;
} else if (2 * t3 < 1) {
val = t2;
} else if (3 * t3 < 2) {
val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
} else {
val = t1;
}
ret[i] = round(val * 255);
}
return ret;
};
var round = Math.round;
module.exports = exports;