fix: checker

This commit is contained in:
手瓜一十雪
2025-04-15 12:34:33 +08:00
parent 06538b9122
commit 941978b578
56 changed files with 93 additions and 93 deletions

View File

@@ -4,8 +4,8 @@ import { ActionName } from '@/onebot/action/router';
import { z } from 'zod';
const SchemaData = z.object({
user_id: z.union([z.coerce.number(), z.coerce.string()]).optional(),
group_id: z.union([z.coerce.number(), z.coerce.string()]).optional(),
user_id: z.coerce.string().optional(),
group_id: z.coerce.string().optional(),
phoneNumber: z.coerce.string().default(''),
});
@@ -29,7 +29,7 @@ export class SharePeer extends OneBotAction<Payload, GeneralCallResult & {
}
const SchemaDataGroupEx = z.object({
group_id: z.union([z.coerce.number(), z.coerce.string()]),
group_id: z.coerce.string(),
});
type PayloadGroupEx = z.infer<typeof SchemaDataGroupEx>;