fix: 代码规范

This commit is contained in:
chenjianxing 2021-12-21 18:01:06 +08:00 committed by john1298308460
parent c66473b16f
commit 21e15276bd
1 changed files with 2 additions and 2 deletions

View File

@ -43,10 +43,10 @@ public abstract class ZentaoClient extends BaseClient {
HttpEntity<MultiValueMap<String, String>> requestEntity = new HttpEntity<>(paramMap, new HttpHeaders()); HttpEntity<MultiValueMap<String, String>> requestEntity = new HttpEntity<>(paramMap, new HttpHeaders());
ResponseEntity<String> response = restTemplate.exchange(loginUrl + sessionId, HttpMethod.POST, requestEntity, String.class); ResponseEntity<String> response = restTemplate.exchange(loginUrl + sessionId, HttpMethod.POST, requestEntity, String.class);
getUserResponse = (GetUserResponse) getResultForObject(GetUserResponse.class, response); getUserResponse = (GetUserResponse) getResultForObject(GetUserResponse.class, response);
} catch (JSONException e) {
MSException.throwException(Translator.get("zentao_test_type_error"));
} catch (Exception e) { } catch (Exception e) {
LogUtil.error(e); LogUtil.error(e);
if (e instanceof JSONException)
MSException.throwException(Translator.get("zentao_test_type_error"));
MSException.throwException(e.getMessage()); MSException.throwException(e.getMessage());
} }
GetUserResponse.User user = getUserResponse.getUser(); GetUserResponse.User user = getUserResponse.getUser();