* Bug 表现是什么?
小游戏中运行wx.showShareMenu和wx.shareAppMessage报错:
showShareMenu:fail jsapi has no permission, event=showShareMenu, runningState=foreground, permissionMsg=permission got, detail=jsapi has no permission
shareAppMessage:fail jsapi has no permission, event=shareAppMessage, runningState=foreground, permissionMsg=permission got, detail=jsapi has no permission
预期表现是什么?
弹出分享菜单
* 如何复现?
微信版本 6.6.5 2018年2月25日
基础库版本 WeChatLib: 0 (xxxx.xx.xx)
* 提供一个最简复现 Demo
在小游戏中运行:
wx.showShareMenu({
withShareTicket: false,
success: (xxx) => { console.log(‘showShareMenu succeess!’, xxx) },
fail: (xxx) => { console.log(‘showShareMenu fail!’, xxx) },
})
wx.shareAppMessage({
title: ‘test title’,
imageUrl: ‘’,
success: (xxx) => { console.log(‘shareAppMessage succeess!’, xxx)},
fail: (xxx) => { console.log(‘shareAppMessage fail!’, xxx) },
})