小游戏客服功能
在小游戏中调用客服功能,
<span style="color: #0000ff;">var</span> dt={
sessionFrom:<span style="color: #a31515;">""</span>,
showMessageCard:<span style="color: #0000ff;">false</span>,
sendMessageTitle:<span style="color: #a31515;">"11"</span>,
sendMessagePath:<span style="color: #a31515;">""</span>,
sendMessageImg:<span style="color: #a31515;">""</span>,
success:(res)=>{
console.log(res);
},
fail: (res) => {
console.log(res);
},
complete: (res) => {
console.log(res);
},
}
wx.openCustomerServiceConversation(dt);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\`
报错:
Cannot read property 'nickname' of undefined;wx.openCustomerServiceConversation
TypeError: Cannot read property 'nickname' of undefined
请问<span style="white-space: pre-wrap;">nickname在哪啊,是个什么鬼?</span>