Skip to content

shit

小程序的接口这么 shit, 他是怎样成功的?

获取头像昵称

  1. 获取用户头像,昵称的接口撤销,需要重新获取
  2. 获取回来的是临时文件,而不是可访问的文件,需要自己再上传
  3. 文件上传非得使用 wx.uploadFile, 不过帮忙封装了也是个好事
  4. wx.uploadFile 返回的数据体,居然变成字符串了
  5. 官方的文档,也只给到了回调函数
  6. 昵称,回调函数也不给一个,demo 也只有一个 input
  7. 使用微信昵称,居然不触发 bind:input

Released under the MIT License.