横屏游戏关系链modifyFriendInteractiveStorage 接口
game.json 配置 成"modifyFriendInteractiveStorageTemplates": [
{
"key": "1",
"action": "赠送",
"object": "金币",
"ratio": 10
}
]
时真机无法拉起 赠送框
game.json 配置 成{
"modifyFriendInteractiveStorageConfirmWording": "确认送给${nickname}一个体力?"
}
时真机正常显示 但是确定赠送后无法拉起定向分享通知(已配置分享)
示例代码:
let send = node.getChildByName('send');
send.on('click',function (params) {
wx.modifyFriendInteractiveStorage({
key: '17',
opNum: 1,
operation: 'add',
toUser: user.openid,
title: '修改测试',
imageUrl: 'image/share.jpg',
success: function (res) {
console.log('modify friend success', res)
},
fail: function (res) {A
console.error('modify friend fail', res)
},
})
})
game.json 配置 成{ "modifyFriendInteractiveStorageConfirmWording": "确认送给${nickname}一个体力?" }时