const project = new miniprogramCi.Project({
appid: appId,
type: 'miniProgram',
projectPath: './src/config/mp-directory/standard',
privateKeyPath: './src/config/mp-directory/standard/private.key',
})
try {
const robot = ~~(Math.random() * 29) + 1
const result = await miniprogramCi.manageProjectMember({
project,
action: action as any,
robot: robot,
member_list: wechatIdArr.map(e => ({
wechatid: e,
remark: ""
}))
})
Logger.log(`自动化结果${robot}: ${JSON.stringify(result)}`)
return {
content: [
{
type: "text",
text: JSON.stringify(result)
},
],
};
} catch (error) {
Logger.error(`Error manageProjectMember:`, error);
return {
isError: true,
content: [{ type: "text", text: `Error manageProjectMember: ${error instanceof Error ? error.message : JSON.stringify(error)}` }],
};
}
打印结果
没有开启IP白名单保护,这是什么原因导致的请求失败

这里漏消息了,现在重试一下看是否已解决?