mirror of
https://gitee.com/johng/gf
synced 2026-07-06 21:45:34 +08:00
fix issue in struct converting for package ghttp
This commit is contained in:
@ -112,11 +112,11 @@ func (r *Request) doParse(pointer interface{}, requestType int) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err = j.GetStructs(".", pointer); err != nil {
|
||||
if err := j.GetStructs(".", pointer); err != nil {
|
||||
return err
|
||||
}
|
||||
for i := 0; i < reflectVal2.Len(); i++ {
|
||||
if err = gvalid.CheckStruct(reflectVal2.Index(i), nil); err != nil {
|
||||
if err := gvalid.CheckStruct(reflectVal2.Index(i), nil); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user