在排行榜的开放数据域中,调用wx.modifyFriendInteractiveStorage给好友赠送礼物,在安卓和IOS 12 版本下正常,但是在IOS9.3.5版本中,wx.modifyFriendInteractiveStorage的fail回调被触发,错误信息是Object.entries is not a function。我在game.js文件第一行中手动添加polyfill代码也无效,仍然报错。添加的polyfill代码为官方示例:
if (!Object.entries)
console.log('Object.entries polyfill add')
Object.entries = function (obj) {
var ownProps = Object.keys(obj),
i = ownProps.length,
resArray = new Array(i); // preallocate the Array
while (i--)
resArray[i] = [ownProps[i], obj[ownProps[i]]];
return resArray;
};
对于wx.modifyFriendInteractiveStorage的调用也是标准代码:
wx.modifyFriendInteractiveStorage({
key: '1',
opNum: 1,
operation: 'add',
toUser: toOpenid,
title: '送你一次无敌,快去游戏看看吧。',
imageUrl: 'https://mmocgame.qpic.cn/wechatgame/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/0',
imageUrlId: 'xxxxxxxxxxxx',
success: (res) => {
console.log(res);
renderDirty = true;
},
fail: (err) => {
console.log(err);
}
})
请问官方是否会修复该问题以及何时会修复该问题?