fix: cq code auto escape
fix: get groups no cache
This commit is contained in:
1 parent
f84d0db811
commit
4c09147fd1
53 files changed
+120
-69
No files matched your search
@@ -16,8 +16,8 @@ class GetGroupList extends BaseAction<Payload, OB11Group[]> {
|
||||
|
||||
protected async _handle(payload: Payload) {
|
||||
let groupList: Group[] = Array.from(groups.values());
|
||||
if (groupList.length === 0) {
|
||||
groupList = await NTQQGroupApi.getGroups(payload.no_cache === true);
|
||||
if (groupList.length === 0 || payload.no_cache === true) {
|
||||
groupList = await NTQQGroupApi.getGroups(true);
|
||||
// log('get groups', groups);
|
||||
}
|
||||
return OB11Constructor.groups(groupList);
|
||||
|
||||
Reference in new issue
Block a user