getCurrentUser()
当我使用方法将其标记为已验证时,Parse android SDK 不允许更新用户表中的列。当我调用saveInBackground()
它时,我在日志文件中收到以下错误:
未捕获的内部服务器错误。{ [MongoError: exception: Mod on _id not allowed] name: 'MongoError'
下面是我用来保存的代码:
byte[] data = "Working at Parse is great!".getBytes();
final ParseFile file = new ParseFile("abcdef.txt", data);
ParseUser currentUser = ParseUser.getCurrentUser();
if (currentUser != null) {
// do stuff with the user
currentUser.put("column_name", file);
currentUser.saveInBackground(new SaveCallback() {
@Override
public void done(ParseException e) {
if (e == null) {
Log.i("KQ", "update successfully");
} else {
Log.i("KQ", "update error e = " + e);
}
}
});
} else {
// show the signup or login screen
Log.i("KQ", "else");
}