只能get到instanceData中的数据,get不到objectId
-
创建时间
17年12月24日
-
最后回复
22年1月10日
- 3
回复
- 540
浏览
- 4
用户
- 2
链接
只能get到instanceData中的数据,get不到objectId
你好,从粘贴的截图可以看出,objectId 已经请求到了。
获取 objectId 方法请参考: https://leancloud.cn/docs/leanstorage_guide-android.html#hash-1854765144。
为什么我get返回不是json格式数据而是下面的好像是数组之类的,我用的是php
LeanCloud\LeanObject Object ( [className:LeanCloud\LeanObject:private] => TestObject [data:LeanCloud\LeanObject:private] => Array ( [objectId] => 61d5e09d766aa1328757c3af [words] => 这周周会改到周三下午三点。 [createdAt] => DateTime Object ( [date] => 2022-01-06 02:17:01.875000 [timezone_type] => 3 [timezone] => PRC ) [updatedAt] => DateTime Object ( [date] => 2022-01-06 02:52:25.066000 [timezone_type] => 3 [timezone] => PRC ) [world] => 这周周会改到周三下午三点。 [worlds] => 这周周会改到周三下午三点。 ) [operationSet:LeanCloud\LeanObject:private] => Array ( ) [saveOption:LeanCloud\LeanObject:private] => )
返回值的问题在另外一个单独的帖子跟进吧 https://forum.leancloud.cn/t/json/24937