wx.shareFileMessage失效

小程序 文章 2022-02-25 18:00 839 0 全屏看文

AI助手支持GPT4.0

wx.shareFileMessage失效wx.shareFileMessage is invalid

wx.shareFileMessage失效
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug wx.shareFileMessage 微信安卓客户端 8.0.18 2.22.1

https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.shareFileMessage.html

文件已下载并返回了临时路径 上午还好下午就一直回调fail 未更改代码 怀疑组件无效了

Framework type problem type API / component name terminal type wechat version basic library version applet bug Wx Sharefilemessage wechat Android client 8.0.18 2.22.1 https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.shareFileMessage.html The file has been downloaded and returned to the temporary path. Fortunately, in the morning and afternoon, the callback failed without changing the code. It is suspected that the component is invalid

回答:

社区技术运营专员-CJiang:

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

XJ丶:

XJ丶:文件已下载成功返回临时路径
Mr.Zhao:

学会提问,怎么个失效?

XJ丶:组件调用一直走fail回调
Mr.Zhao:fail错误是啥?
Mr.Zhao:打印下err不就知道啥原因了  学会提问,一个失效很难猜的
XJ丶:can only be invoked by user TAP gesture  是绑定到button的点击事件 先下载再分享
Mr.Zhao:不是直接分享?如果不是,以后还会有问题
XJ丶:文档就是写的先下载 再回调分享的啊。。 提前下载再分享 那业务逻辑就太差了
Mr.Zhao:那有可能微信在灰度测试基础库吧

-EOF-

AI助手支持GPT4.0