fix:coerce

This commit is contained in:
手瓜一十雪
2025-04-15 12:25:37 +08:00
parent 9257a6cfde
commit dd895d7c17
88 changed files with 277 additions and 276 deletions

View File

@@ -3,11 +3,11 @@ import { OneBotAction } from '../OneBotAction';
import { z } from 'zod';
const SchemaData = z.object({
group_id: z.string(),
bot_appid: z.string(),
button_id: z.string().default(''),
callback_data: z.string().default(''),
msg_seq: z.string().default('10086'),
group_id: z.coerce.string(),
bot_appid: z.coerce.string(),
button_id: z.coerce.string().default(''),
callback_data: z.coerce.string().default(''),
msg_seq: z.coerce.string().default('10086'),
});
type Payload = z.infer<typeof SchemaData>;