新版的用户授权获取头像,这个临时头像有效期多久?

小程序 文章 2022-02-23 20:00 1157 0 全屏看文

AI助手支持GPT4.0

新版的用户授权获取头像,这个临时头像有效期多久?How long is the temporary avatar valid for the new version of the user authorization to obtain the avatar?

新版的用户授权获取头像,这个临时头像有效期多久?

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

请问这里的临时路径有效期是多久,这个生成的图像可以使用多久?

The open type value of the button component needs to be set to chooseavatar. After the user selects the avatar to be used, the temporary path to obtain the avatar information can be obtained through the bindchooseavatar event callback. How long is the validity period of the temporary path here and how long can the generated image be used?

回答:

Mr.Zhao:

用wx.getUserProfile

豆芽:

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

-EOF-

AI助手支持GPT4.0