bindchooseavatar 事件回调获取到获取到头像信息的临时路径,临时路径是有时效吗?

小程序 文章 2022-02-23 19:40 3885 0 全屏看文

AI助手支持GPT4.0

bindchooseavatar 事件回调获取到获取到头像信息的临时路径,临时路径是有时效吗?The bindchooseavatar event callback gets the temporary path to get the avatar information. Is the temporary path time-effective?

bindchooseavatar 事件回调获取到获取到头像信息的临时路径,临时路径是有时效吗?

官方说法: 需要将 button 组件 open-type 的值设置为 chooseAvatar,当用户选择需要使用的头像之后,可以通过 bindchooseavatar 事件回调获取到获取到头像信息的临时路径。

Official statement: you need to set the value of open type of button component to chooseavatar. After the user selects the avatar to be used, you can get the temporary path of avatar information through bindchooseavatar event callback.

回答:

豆芽:

我们做的就是一些本地应用就,压根就没用服务器,就是纯粹的使用了小程序的功能,不需要通过接口交互,所以不需要服务器。这可咋整

圣殿骑士:

这个是一个临时路径,要上传到cloud 或者你自己的服务器 保存下来

Mr.Zhao:

uploadFile上传到自己服务器上完事。临时路径,下次冷启动就不能用了,随时失效

-EOF-

AI助手支持GPT4.0