F12打开调试工具查看Network,打开个人资料,点击保存,查看接口地址user_info。- 右键
Copy->Copy as cURL(bash),导入Postman,修改为POST方法,修改Body为form-data类型,写入aid值为2068,avatar值为一段https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/xxxxxxxxxx.image的地址,看下一步获取。 - 打开掘金写文章,插入图片,图片是自己想要的gif头像,会看到
https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/xxxxxxxxxx.image的地址,复制到Postman中avatar的值。 - 最后点击
send,返回如下就成功了,刷新个人资料等待审核通过。
{
"message": "success",
"data": {
"bui_audit_info": {
"avatar_url": "https://sf1-ttcdn-tos.pstatp.com/img/user-avatar/xxxxxxxxxx~300x300.image"
},
"current_info": {
"avatar_url": "https://sf1-ttcdn-tos.pstatp.com/img/user-avatar/xxxxxxxxxx~300x300.image"
}
}
}
其他平台也可以使用Postman上传动态头像,有兴趣可以去试试。