From 6a3739e61c52f510e069717bde46665b78dd9f21 Mon Sep 17 00:00:00 2001 From: Stormeye Wu Date: Wed, 25 Mar 2020 14:53:07 +0800 Subject: [PATCH] =?UTF-8?q?[POS][=E4=BF=AE=E6=94=B9]:=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/iformall/controller/PosController.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mallinkPosApi/src/main/java/com/iformall/controller/PosController.java b/mallinkPosApi/src/main/java/com/iformall/controller/PosController.java index 3672ab836..328ff0840 100644 --- a/mallinkPosApi/src/main/java/com/iformall/controller/PosController.java +++ b/mallinkPosApi/src/main/java/com/iformall/controller/PosController.java @@ -323,9 +323,11 @@ public class PosController extends BaseController { try { retObj = posService.posOrderSync(params); } catch (MallinkException e) { - return buildReturnMap(retObj, resKey, WxPayConstant.RET_SUCCESS, "", e.getErrorCode(), e.getMessage()); + logger.error(e.getMessage()); + return buildReturnMap(retObj, resKey, WxPayConstant.RET_FAIL, "", e.getErrorCode(), e.getMessage()); } catch (Exception e) { - return buildReturnMap(retObj, resKey, WxPayConstant.RET_SUCCESS, "", 500, e.getMessage()); + logger.error(e.getMessage()); + return buildReturnMap(retObj, resKey, WxPayConstant.RET_FAIL, "", 500, e.getMessage()); } return buildReturnMap(retObj, resKey, WxPayConstant.RET_SUCCESS, "",null);