Fix the resize bug.
This commit is contained in:
parent
34a066baf0
commit
23f8efd8d7
@ -50,6 +50,9 @@ a. 执行`src/tank/build/pack/build.bat`脚本
|
|||||||
b. 上传 tank-x.x.x.windows-x86_64.zip 到蓝眼云盘
|
b. 上传 tank-x.x.x.windows-x86_64.zip 到蓝眼云盘
|
||||||
c. 在github上发布新版本。
|
c. 在github上发布新版本。
|
||||||
|
|
||||||
|
2018-07-03
|
||||||
|
tank-1.0.3
|
||||||
|
1. 添加了文件分段功能,支持断点续传。
|
||||||
|
|
||||||
|
|
||||||
2018-04-12
|
2018-04-12
|
||||||
|
@ -204,7 +204,7 @@ func (this *MatterService) ResizeImage(writer http.ResponseWriter, request *http
|
|||||||
imageResizeWStr := request.FormValue("imageResizeW")
|
imageResizeWStr := request.FormValue("imageResizeW")
|
||||||
var imageResizeW int
|
var imageResizeW int
|
||||||
if imageResizeWStr != "" {
|
if imageResizeWStr != "" {
|
||||||
imageResizeW, err := strconv.Atoi(imageResizeWStr)
|
imageResizeW, err = strconv.Atoi(imageResizeWStr)
|
||||||
this.PanicError(err)
|
this.PanicError(err)
|
||||||
if imageResizeW < 1 || imageResizeW > 4096 {
|
if imageResizeW < 1 || imageResizeW > 4096 {
|
||||||
panic("缩放尺寸不能超过4096")
|
panic("缩放尺寸不能超过4096")
|
||||||
@ -213,7 +213,7 @@ func (this *MatterService) ResizeImage(writer http.ResponseWriter, request *http
|
|||||||
imageResizeHStr := request.FormValue("imageResizeH")
|
imageResizeHStr := request.FormValue("imageResizeH")
|
||||||
var imageResizeH int
|
var imageResizeH int
|
||||||
if imageResizeHStr != "" {
|
if imageResizeHStr != "" {
|
||||||
imageResizeH, err := strconv.Atoi(imageResizeHStr)
|
imageResizeH, err = strconv.Atoi(imageResizeHStr)
|
||||||
this.PanicError(err)
|
this.PanicError(err)
|
||||||
if imageResizeH < 1 || imageResizeH > 4096 {
|
if imageResizeH < 1 || imageResizeH > 4096 {
|
||||||
panic("缩放尺寸不能超过4096")
|
panic("缩放尺寸不能超过4096")
|
||||||
|
Loading…
Reference in New Issue
Block a user