var plugin = requirePlugin( "chatbot" );
App({
onLaunch: function () {
var logs = wx.getStorageSync( 'logs' ) || []
logs.unshift(Date.now())
wx.setStorageSync( 'logs' , logs)
plugin.init({
appid: "fNvTN5LKrRVnmWD7851yM2LDIuegc4" ,
openid: "" ,
success: () => { },
fail: error => { }
});
|
"permission" : {
"scope.userLocation" : {
"desc" : "使用地图展示附近设备位置"
}
},
"plugins" : {
"chatbot" : {
"version" : "1.1.8" ,
"provider" : "wx8c631f7e9f2465e1"
},
"WechatSI" : {
"version" : "0.3.1" ,
"provider" : "wx069ba97219f66d99"
}
},
|
< view style = "height: 100vh" >
< chat bind:backHome = "goBackHome" bind:queryCallback = "getQueryCallback" />
</ view >
|
{
"component" : true ,
"usingComponents" : {
"chat" : "plugin://chatbot/chat"
}
}
|
goBackHome: function () {
wx.navigateBack({
delta: 1
})
},
getQueryCallback: function (e) {
}
|
升级到1.1.4以上版本都报以下错 如:1.1.8
点击“继续执行脚本”
不知道什么原因,倒腾一圈又可以用了。