收藏
回答

服务号网页中调用云开发报错 missing appid?

如题,缺少appid参数,但是初始化不传appid啊,那么云环境是如何区别调用方的appid的呢?

      var c1 = initCloud({

        identityless: true,

        resourceAppid: 'xxxx',

        resourceEnv: 'xxxx',

      })

      await c1.init()

      // 完成后正常使用资源方的已授权的云资源

      c1.callFunction({

        name: 'user',

        data: {

          action: 'getUserInfo'

        },

        success: res => {

          console.log(res)

        },

        fail: err => {

          console.log(err)

        }

      })

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

2 个回答

  • showms
    showms
    06-05

    没明白啥意思,resourceAppid不就是吗

    06-05
    有用
    回复 1
    • 癫倒
      癫倒
      06-05
      resourceAppid是资源方appid吧,也就是开通云环境的小程序的appid,后续我找到文档加了appid参数也不行,放弃了,走登录模式了
      06-05
      回复
  • 智能回答 智能回答 该问答由AI生成
    06-04
    有用
登录 后发表内容