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

22
node_modules/licia/normalizePhone.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
var trim = require('./trim');
exports = function(phone, options) {
phone = trim(phone);
var countryCode = options.countryCode,
_options$trunkPrefix = options.trunkPrefix,
trunkPrefix =
_options$trunkPrefix === void 0 ? false : _options$trunkPrefix;
var plusSign = regPlusSign.test(phone);
phone = phone.replace(regNotDigit, '');
if (plusSign) {
phone = phone.replace(new RegExp('^'.concat(countryCode)), '');
}
if (trunkPrefix) {
phone = phone.replace(regTrunkPrefix, '');
}
return '+'.concat(countryCode + phone);
};
var regPlusSign = /^\+/;
var regNotDigit = /\D/g;
var regTrunkPrefix = /^\d/;
module.exports = exports;