收藏
回答

shareImageToGroup 报错说没有权限?

saveImg() {
      const that = this
      wx.downloadFile({
        url: that.imgAdv,
        success: (res) => {
          if (wx.shareImageToGroup) {
            wx.shareImageToGroup({
              imagePath: res.tempFilePath,
              success: (resf) => {
                console.log('success', resf)
                that.hidePop()
              },
              fail: (error) => {
                console.log('error', error)
                that.$Error(error.errMsg)
              }


            })
          } else {
            this.$Error('请升级您的小程序版本')
          }
        }
      })
    }

一直报错说没有权限,不知道什么权限没开 怎么开?小程序也认证了,我们用的是 kbone 框架 不知道有没有什么影响

最后一次编辑于  2025-07-11
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容