[이민권] Client - Server RPC의 인자 중 Struct가 있는 경우 간헐적으로 Case Sensitive로 인한 정보 전달 실패 이슈 수정
This commit is contained in:
@ -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()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user