[이민권] Client - Server RPC의 인자 중 Struct가 있는 경우 간헐적으로 Case Sensitive로 인한 정보 전달 실패 이슈 수정

This commit is contained in:
2023-05-28 22:33:53 +09:00
parent 93bd4f6c0b
commit d1754b6c83

View File

@ -204,7 +204,7 @@ func ConvertInterface(from interface{}, toType reflect.Type) reflect.Value {
if field.Anonymous {
fieldval := out.Elem().FieldByIndex([]int{i})
fieldval.Set(ConvertInterface(from, field.Type))
} else if v, ok := frommap[field.Name]; ok {
} else if v, ok := frommap[strings.ToLower(field.Name)]; ok {
fieldval := out.Elem().FieldByIndex([]int{i})
fieldval.Set(ConvertInterface(v, fieldval.Type()))
}