fix: 添加缺失的user_id_type参数
This commit is contained in:
parent
24f0c43f2e
commit
6c8b16a2af
@ -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,
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user