收藏
回答

系统异常,请稍后再试。代码是874883,但不知道是什么原因?

  1. 明天会更好 {success: false, code: 874883, msg: "系统异常,请稍候再试", rid: "a72b5a58"}
  2. code874883msg"系统异常,请稍候再试"rid"a72b5a58"successfalsehasOwnProperty: (...)isPrototypeOf: (...)propertyIsEnumerable: (...)toLocaleString: (...)toString: (...)valueOf: (...)__defineGetter__: (...)__defineSetter__: (...)__lookupGetter__: (...)__lookupSetter__: (...)__proto__: Object


    let event = {

      type: 'Init'

    }

    wx.cloud.callFunction({

      name: 'getDialog',

      data: event

    }).then(res => {

      console.log('初始化后台成功', res.result)

      //初始化插件

      plugin.init({

        appid: "wx5aec2993ee8aab5b",

        openid: openid, //res.result.openid, //用户的openid,必填项

        success: (res) => {

          console.log('chatbot 初始化成功.openid,plugin:', plugin)

          that.globalData.chatPlugin = plugin

          plugin.send({

            query: "播放歌曲明天会更好",

            success: (res) => {

                console.log('明天会更好',res);

            },

            fail: (error) => {

               console.log('播放错误')

            },

        });

        }, //非必填

        fail: (error) => {

          console.log('chatbot 初始化失败', error)

        }, //非必填

      });

    }).catch(res => {

      console.log('初始化后台失败', res)

    })

回答关注问题邀请回答
收藏

4 个回答

登录 后发表内容