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

修复 解决在低版本的 nodejs 环境下不支持可先链的问题

上级 403ca615
...@@ -460,7 +460,7 @@ async function _createOrUpdateConversation(conversation_id, msgData, chat_source ...@@ -460,7 +460,7 @@ async function _createOrUpdateConversation(conversation_id, msgData, chat_source
}) })
.get() .get()
// console.error('createOrUpdateConversation receiver~~~~~', receiver); // console.error('createOrUpdateConversation receiver~~~~~', receiver);
if(receiver && receiver.role?.includes('staff')){ if(receiver && receiver.role && receiver.role.includes('staff')){
// console.error('createOrUpdateConversation receiver.staff~~~~~'); // console.error('createOrUpdateConversation receiver.staff~~~~~');
check = true check = true
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册