- (void)loadUserInfoForId:(int)userId
{
NSMutableDictionary *getRequest = [NSMutableDictionary dictionary];
[getRequest setObject:[NSNumber numberWithInt:userId] forKey:@"user_id"];
[QBCustomObjects objectsWithClassName:@"orgeen_users_info" extendedRequest:getRequest delegate:self];
}
- (void)completedWithResult:(Result *)result
{
if(result.success && [result isKindOfClass:QBCOCustomObjectPagedResult.class])
{
QBCOCustomObjectPagedResult *getObjectsResult = (QBCOCustomObjectPagedResult *)result;
QBCOCustomObject *userInfo = getObjectsResult.objects[0];
NSLog(@"array_test: %@", userInfo.fields[@"array_test"]);
}
}
输出显示 fields[@"array_test"] = 558:
数组测试:558
同时管理面板显示 fields[@"array_test"] = {"123", "558"}:
根据 QB 日志输出,这是真的:
<array_test type="array">
<array_test>123</array_test>
<array_test>558</array_test>
</array_test>
我究竟做错了什么?
PS问题不在于下载了错误的对象,我通过对象和用户ID进行了检查。