Skip to content

Commit

Permalink
bug fix #141
Browse files Browse the repository at this point in the history
  • Loading branch information
karldoenitz committed Dec 12, 2024
1 parent e55e8d6 commit 1288279
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ func (jsonParam *ReqParams) ToString() string {
return "true"
}
return "false"
default:
return fmt.Sprintf("%v", jsonParam.Value)
}
logger.Warning.Println("format to string failed")
return ""
}

// ToBool 将json中的参数值转换为bool
Expand Down

0 comments on commit 1288279

Please sign in to comment.