plugin.init({
appid: 'wx8c631f7e9f2465e1', //小程序示例账户,仅供学习和参考
openid:wx.getStorageSync('openid')|| "", //用户的openid,非必填,建议传递该参数
userHeader: "", // 用户头像
userName: "", // 用户昵称
anonymous: false,
});
const txt = "楼主真垃圾,祝你早日死全家";
plugin.api.nlp('sensitive', {q: txt, mode: 'cnn'}).then(res => {
console.log("sensitive result : ", res)
})
您好,请问您解决了嘛?