数据储存,不能修改字段的值

val motto = binding.editTextTextPersonName.text.toString()
model.currentUser.put("motto", motto)
model.motto.postValue(motto)

在代码中无法修改后台数据,只有在浏览器中改数据。无论是用 currentUser.put("username", userName),还是用currentUser.setUsername() 都无法修改。

你好,请问您使用的是哪个平台的 SDK?

Java平台

请确认您已按照文档中给出的方式对 LCObject 对象设置属性,并在设置好属性后调用保存对象的方法。

1 人赞了这个帖子.