bugfix: Adapt the compilation table and grouping table structure changes

This commit is contained in:
fengweihao
2023-11-30 18:24:21 +08:00
parent ae2dba8146
commit 7ce3d87440
5 changed files with 350 additions and 362 deletions

View File

@@ -263,6 +263,11 @@ static int get_attribute_from_json(int curr_id, cJSON* subchild, struct verify_p
if(item && item->type==cJSON_String)
{
policy_query->verify_object[curr_id].table_id = protoco_field_type_str2idx(item->valuestring, buff, &p);
if(policy_query->verify_object[curr_id].table_id == __TSG_OBJ_MAX)
{
mesa_runtime_log(RLOG_LV_FATAL, "Get table id failed form table name:%s", item->valuestring);
return xret;
}
}
attributeValue = cJSON_GetObjectItem(subchild, "attributeValue");