This commit is contained in:
aozhiwei 2020-06-17 14:12:10 +08:00
parent a24a743b05
commit 2cd0d756d8

View File

@ -219,6 +219,7 @@ namespace f8
if (field_desc->is_repeated()) { if (field_desc->is_repeated()) {
a8::MutableXObject* array_obj = a8::MutableXObject::NewArray(); a8::MutableXObject* array_obj = a8::MutableXObject::NewArray();
std::shared_ptr<a8::XObject> repeated_field = jsonobj.At(field_name); std::shared_ptr<a8::XObject> repeated_field = jsonobj.At(field_name);
continue;
for (int i = 0; i < reflection->FieldSize(*msg, field_desc); ++i) { for (int i = 0; i < reflection->FieldSize(*msg, field_desc); ++i) {
switch (field_desc->cpp_type()) { switch (field_desc->cpp_type()) {
case google::protobuf::FieldDescriptor::CPPTYPE_BOOL: case google::protobuf::FieldDescriptor::CPPTYPE_BOOL: