From 64a6a81753abfc712b1ab384de0f7afb87f4fb23 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期四, 18 七月 2024 17:02:52 +0800 Subject: [PATCH] 提交 --- server/admin/src/main/java/com/doumee/api/business/PushController.java | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/server/admin/src/main/java/com/doumee/api/business/PushController.java b/server/admin/src/main/java/com/doumee/api/business/PushController.java index f599904..9ee9794 100644 --- a/server/admin/src/main/java/com/doumee/api/business/PushController.java +++ b/server/admin/src/main/java/com/doumee/api/business/PushController.java @@ -38,15 +38,16 @@ ApiResponse<String> r = null; try { zbomIAMService.updateShopInfo(token,uuid,timestamp,shopList); - r = ApiResponse.success("鎿嶄綔鎴愬姛"); + r = ApiResponse.successIam("鎿嶄綔鎴愬姛"); }catch (BusinessException e){ success = Constants.ONE; r = ApiResponse.failed(StringUtils.defaultString(e.getMessage(),"鎿嶄綔澶辫触")); }catch (Exception e){ + e.printStackTrace(); success = Constants.ONE; r = ApiResponse.failed("鎿嶄綔澶辫触"); }finally { - zbomIAMService.saveInterfaceLog("/push/iam/updateUserInfo","IAM鎺ㄩ�佷汉鍛樿处鍙蜂俊鎭�", token, uuid, timestamp, shopList,success, JSONObject.toJSONString(r)); + zbomIAMService.saveInterfaceLog("/push/iam/updateUserInfo",Constants.ONE,"IAM鎺ㄩ�佺粍缁囦俊鎭�", token, uuid, timestamp, shopList,success, JSONObject.toJSONString(r)); } return r; } @@ -61,15 +62,16 @@ ApiResponse<String> r = null; try { zbomIAMService.updateUserInfo(token,uuid,timestamp,upateUserModel); - r = ApiResponse.success("鎿嶄綔鎴愬姛"); + r = ApiResponse.successIam("鎿嶄綔鎴愬姛"); }catch (BusinessException e){ success = Constants.ONE; r = ApiResponse.failed(StringUtils.defaultString(e.getMessage(),"鎿嶄綔澶辫触")); }catch (Exception e){ success = Constants.ONE; + e.getMessage(); r = ApiResponse.failed("鎿嶄綔澶辫触"); }finally { - zbomIAMService.saveInterfaceLog("/push/iam/updateUserInfo","IAM鎺ㄩ�佷汉鍛樿处鍙蜂俊鎭�", token, uuid, timestamp, upateUserModel,success, JSONObject.toJSONString(r)); + zbomIAMService.saveInterfaceLog("/push/iam/updateUserInfo",Constants.ONE,"IAM鎺ㄩ�佷汉鍛樿处鍙蜂俊鎭�", token, uuid, timestamp, upateUserModel,success, JSONObject.toJSONString(r)); } return r; } -- Gitblit v1.9.3