fix: 添加缺失的user_id_type参数
All checks were successful
Egg CI/CD / build-image (push) Successful in 24s
Egg CI/CD / deploy (push) Successful in 22s

This commit is contained in:
zhaoyingbo 2024-06-10 04:33:41 +00:00
parent 24f0c43f2e
commit 6c8b16a2af
2 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,9 @@ const manageBatchUser = async (req: Request, isSeek = false) => {
if (!user_ids) {
return new Response("user_ids not found", { status: 400 });
}
if (!user_id_type) {
return new Response("user_id_type not found", { status: 400 });
}
const { code, data, msg } = await service.lark.user.batchGet(
user_ids,
user_id_type,

View File

@ -5,6 +5,7 @@ const res = await fetch("https://egg.imoaix.cn/micro_app/egg/batch_user", {
},
body: JSON.stringify({
user_ids: ["libo12"],
user_id_type: "user_id",
}),
});
console.log(await res.json());