User.updateProfile = function (uid, data, callback) {
var fields = ['username', 'email', 'fullname', 'website', 'location',
'groupTitle', 'birthday', 'signature', 'aboutme'];
var updateUid = data.uid;
var oldData;
console.log(uid) //28
console.log(updateUid) //undefined
[image: PyCarZO.png]
curl -X PUT -H "Authorization: Bearer d1a81c3f-b0d4-4bc1-a307-dbed9aa5fbe" --data "uid=28&username=修改用户名测试" http://localhost:4567/api/v1/users/28
{
"code": "ok",
"payload": {}
}
"uid=28&username=修改用户名测试"
The problem is solved!(是我的问题还是文档的问题???)@julian