| | |
| | | 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; |
| | | } |
| | |
| | | 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; |
| | | } |