not a function;at api cloud.callFunction succes?
发布于 5 年前 作者 dongguiying 15321 次浏览 来自 官方Issues

一个新建的小游戏 管理员手机 主域 使用 getUserInteractiveStorage是正常的,,,非管理员 主域使用 getUserInteractiveStorage 报错

(wx as any).getUserInteractiveStorage({

   keyList: [WxXiaoApi.gift],

   success: (data)=>{

    console.log(“获取当前用户互动型托管数据对应 key 的数据 成功”);

    console.log(data);//{data:{cloudID}

    this.parseInteractiveData(data.cloudID);

   }

  });

gameThirdScriptError

wx.getUserInteractiveStorage is not a function;at api cloud.callFunction success callback function

TypeError: wx.getUserInteractiveStorage is not a function

at getUserInteractiveStorage (js/main.min.js:4:17207)

at getUserInteractiveStorage (js/main.min.js:4:16925)

2 回复

谢谢 ,找到原因了,,安卓手机,,升级微信版本 就正常了

回到顶部