From 4af1e31a9ee1d4e0a308c4f93be6c7e81307e952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=A4=A9=E5=B0=A7?= Date: Mon, 8 Jan 2018 19:49:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E4=BC=A0=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E6=B2=A1=E6=9C=89=E5=9B=9E=E8=B0=83bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/common/upload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/common/upload.js b/server/common/upload.js index 263d506..af6b08e 100755 --- a/server/common/upload.js +++ b/server/common/upload.js @@ -53,9 +53,9 @@ function minImage(fileInfo, callback) { ImageminPngquant({quality: '65-80'}) ] }).then(files => { - console.log(files); + callback(1, fileInfo); }).catch(function(err){ - callback(err ? 0 : 1, fileInfo); + callback(0, fileInfo); }); }