This commit is contained in:
新亮笔记
2021-05-07 20:12:02 +08:00
committed by GitHub
parent 6f71852686
commit 8fbcb5d717

View File

@@ -45,7 +45,7 @@ func (h *handler) Execute() core.HandlerFunc {
}
versionStr := runtime.Version()
version := cast.ToFloat32(versionStr[2:])
version := cast.ToFloat32(versionStr[2:6])
if version < 1.15 {
c.AbortWithError(errno.NewError(
http.StatusBadRequest,