fix: getMessageHistory 检查参数错误

This commit is contained in:
CrescentLeaf
2026-01-01 01:06:09 +08:00
parent 940845db84
commit cf560909e7

View File

@@ -91,7 +91,7 @@ export default class ChatApi extends BaseApi {
msg: "参数缺失", msg: "参数缺失",
code: 400, code: 400,
} }
if (!args.page && !args.offset) return { if (args.page == null && args.offset == null) return {
msg: "参数缺失", msg: "参数缺失",
code: 400, code: 400,
} }