提交 b217d420 编写于 作者: DCloud_JSON's avatar DCloud_JSON

更新 云函数之间互调时允许设置user_id

上级 080f34c0
......@@ -100,6 +100,12 @@ async function chooseUserIntoGroup(params) {
// console.log({
// name
// });
if(groupInfo.user_id === undefined){
groupInfo.user_id = this.current_uid
}else if(this.clientInfo.source != "function" && groupInfo.user_id != this.current_uid){
throw new Error('触发器限制,user_id的值必须为当前操作者')
}
dbJQL.setUser({
uid: this.current_uid,
role: ['admin'],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册