mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
Compare commits
4 Commits
6c66a0116a
...
d7e8c82624
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d7e8c82624 | ||
![]() |
5affbdebb9 | ||
![]() |
aee36e7ca3 | ||
![]() |
d8a9633a00 |
@ -39,7 +39,7 @@ const config: ElectronViteConfig = {
|
|||||||
...external.map(genCpModule),
|
...external.map(genCpModule),
|
||||||
{ src: './manifest.json', dest: 'dist' },
|
{ src: './manifest.json', dest: 'dist' },
|
||||||
{ src: './icon.webp', dest: 'dist' },
|
{ src: './icon.webp', dest: 'dist' },
|
||||||
{ src: './src/ntqqapi/native/napcat-protocol-packet/Moehoo/*', dest: 'dist/main/Moehoo' },
|
// { src: './src/ntqqapi/native/napcat-protocol-packet/Moehoo/*', dest: 'dist/main/Moehoo' },
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"name": "LLOneBot",
|
"name": "LLOneBot",
|
||||||
"slug": "LLOneBot",
|
"slug": "LLOneBot",
|
||||||
"description": "实现 OneBot 11 和 Satori 协议,用于 QQ 机器人开发",
|
"description": "实现 OneBot 11 和 Satori 协议,用于 QQ 机器人开发",
|
||||||
"version": "4.3.1",
|
"version": "4.4.1",
|
||||||
"icon": "./icon.webp",
|
"icon": "./icon.webp",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
|
@ -123,8 +123,7 @@ export async function uri2local(ctx: Context, uri: string, needExt?: boolean): P
|
|||||||
const { type } = checkUriType(uri)
|
const { type } = checkUriType(uri)
|
||||||
|
|
||||||
if (type === FileUriType.FileURL) {
|
if (type === FileUriType.FileURL) {
|
||||||
const fileUri = uri.replace('%', '%25').replace('#', '%23')
|
const filePath = fileURLToPath(uri)
|
||||||
const filePath = fileURLToPath(fileUri)
|
|
||||||
const fileName = path.basename(filePath)
|
const fileName = path.basename(filePath)
|
||||||
// console.log('fileURLToPath', filePath)
|
// console.log('fileURLToPath', filePath)
|
||||||
// console.log('fileName', fileName)
|
// console.log('fileName', fileName)
|
||||||
|
@ -15,8 +15,16 @@ class GetGroupInfo extends BaseAction<Payload, OB11Group> {
|
|||||||
|
|
||||||
protected async _handle(payload: Payload) {
|
protected async _handle(payload: Payload) {
|
||||||
const groupCode = payload.group_id.toString()
|
const groupCode = payload.group_id.toString()
|
||||||
const group = (await this.ctx.ntGroupApi.getGroups()).find(e => e.groupCode === groupCode)
|
let group = (await this.ctx.ntGroupApi.getGroups()).find(e => e.groupCode === groupCode)
|
||||||
if (group) {
|
if (group) {
|
||||||
|
try{
|
||||||
|
const groupAllInfo = await this.ctx.ntGroupApi.getGroupAllInfo(groupCode)
|
||||||
|
this.ctx.logger.info(groupAllInfo)
|
||||||
|
return {...OB11Entities.group(group), ...groupAllInfo}
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
this.ctx.logger.error('获取群完整详细信息失败', e)
|
||||||
|
}
|
||||||
return OB11Entities.group(group)
|
return OB11Entities.group(group)
|
||||||
}
|
}
|
||||||
throw new Error(`群${payload.group_id}不存在`)
|
throw new Error(`群${payload.group_id}不存在`)
|
||||||
|
@ -1 +1 @@
|
|||||||
export const version = '4.3.1'
|
export const version = '4.4.1'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user