not a function;at api cloud.callFunction succes?

发布于 6 年前作者 dongguiying15543 次浏览最后编辑 6 年前来自 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 回复
gaofang
gaofang1 楼6 年前
rgao
rgao2 楼4 年前

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