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

55
node_modules/licia/Dispatcher.js generated vendored Normal file
View File

@@ -0,0 +1,55 @@
var Class = require('./Class');
var uniqId = require('./uniqId');
exports = Class({
initialize: function Dispatcher() {
this._callbacks = {};
this._isDispatching = false;
this._isHandled = {};
this._isPending = {};
},
dispatch: function(payload) {
this._startDispatching(payload);
for (var id in this._callbacks) {
if (this._isPending[id]) continue;
this._invokeCb(id);
}
this._stopDispatching();
},
register: function(cb) {
var id = uniqId('ID_');
this._callbacks[id] = cb;
return id;
},
waitFor: function(ids) {
for (var i = 0, len = ids.length; i < len; i++) {
var id = ids[i];
if (this._isPending[id]) continue;
this._invokeCb(id);
}
},
unregister: function(id) {
delete this._callbacks[id];
},
isDispatching: function() {
return this._isDispatching;
},
_startDispatching: function(payload) {
for (var id in this._callbacks) {
this._isPending[id] = false;
this._isHandled[id] = false;
}
this._pendingPayload = payload;
this._isDispatching = true;
},
_stopDispatching: function() {
delete this._pendingPayload;
this._isDispatching = false;
},
_invokeCb: function(id) {
this._isPending[id] = true;
this._callbacks[id](this._pendingPayload);
this._isHandled[id] = true;
}
});
module.exports = exports;