tao.mo

manager-server | 修改 |

FCL登录获取ean信息
mt
2025年5月27日17:15:01
...@@ -124,12 +124,14 @@ public class LoginControllerUtils { ...@@ -124,12 +124,14 @@ public class LoginControllerUtils {
124 */ 124 */
125 try{ 125 try{
126 ResponseEntity<String> resp = restTemplate.exchange(propertiesConfig.getUserShippingaccountsUrl(), HttpMethod.GET, entity, String.class); 126 ResponseEntity<String> resp = restTemplate.exchange(propertiesConfig.getUserShippingaccountsUrl(), HttpMethod.GET, entity, String.class);
127 + log.info("apiExchange | resp: {}", JSON.toJSONString(resp));
127 FclEanTwoResponseVo fclAccountsResponse = JSON.parseObject(resp.getBody(), FclEanTwoResponseVo.class); 128 FclEanTwoResponseVo fclAccountsResponse = JSON.parseObject(resp.getBody(), FclEanTwoResponseVo.class);
128 EanTwoVo eanInfo = this.getEanByEanTwoApi(fclAccountsResponse); 129 EanTwoVo eanInfo = this.getEanByEanTwoApi(fclAccountsResponse);
129 String ext1 = eanInfo.getDefaultEanInfo(); 130 String ext1 = eanInfo.getDefaultEanInfo();
130 String ext2 = eanInfo.getAccountNumberInfo(); 131 String ext2 = eanInfo.getAccountNumberInfo();
131 shipperAccountApi1 = (StringUtils.isNotEmpty(ext1) && StringUtils.isNotEmpty(ext2)) ? ext1 + "," + ext2 : 132 shipperAccountApi1 = (StringUtils.isNotEmpty(ext1) && StringUtils.isNotEmpty(ext2)) ? ext1 + "," + ext2 :
132 (StringUtils.isNotEmpty(ext1) ? ext1 : (StringUtils.isNotEmpty(ext2) ? ext2 : "")); 133 (StringUtils.isNotEmpty(ext1) ? ext1 : (StringUtils.isNotEmpty(ext2) ? ext2 : ""));
134 + log.info("shipperAccountApi1 - getShipperAccount : {}",shipperAccountApi1);
133 }catch(Exception ex){ 135 }catch(Exception ex){
134 log.error("getShipperAccount api1 | fdxLogin: {}, secretValue: {} url: {}, userId: {} |具体原因: " 136 log.error("getShipperAccount api1 | fdxLogin: {}, secretValue: {} url: {}, userId: {} |具体原因: "
135 , fclInfoDto.getFdxLogin(), fclInfoDto.getOAuthSecret(), propertiesConfig.getUserInfoUrl(),fclInfoDto.getUserId()); 137 , fclInfoDto.getFdxLogin(), fclInfoDto.getOAuthSecret(), propertiesConfig.getUserInfoUrl(),fclInfoDto.getUserId());
...@@ -141,8 +143,10 @@ public class LoginControllerUtils { ...@@ -141,8 +143,10 @@ public class LoginControllerUtils {
141 */ 143 */
142 try{ 144 try{
143 ResponseEntity<String> resp = restTemplate.exchange(propertiesConfig.getUserAccountUrl(), HttpMethod.GET, entity, String.class); 145 ResponseEntity<String> resp = restTemplate.exchange(propertiesConfig.getUserAccountUrl(), HttpMethod.GET, entity, String.class);
146 + log.info("apiExchange | resp: {}", JSON.toJSONString(resp));
144 FCLAccountsResponseVo fclAccountsResponseVo = JSON.parseObject(resp.getBody(), FCLAccountsResponseVo.class); 147 FCLAccountsResponseVo fclAccountsResponseVo = JSON.parseObject(resp.getBody(), FCLAccountsResponseVo.class);
145 shipperAccountApi2 = this.getEANInfo(fclAccountsResponseVo); 148 shipperAccountApi2 = this.getEANInfo(fclAccountsResponseVo);
149 + log.info("shipperAccountApi2 - getShipperAccount : {}",shipperAccountApi2);
146 }catch(Exception ex){ 150 }catch(Exception ex){
147 log.error("getShipperAccount api2 | fdxLogin: {}, secretValue: {} url: {}, userId: {} |具体原因: " 151 log.error("getShipperAccount api2 | fdxLogin: {}, secretValue: {} url: {}, userId: {} |具体原因: "
148 , fclInfoDto.getFdxLogin(), fclInfoDto.getOAuthSecret(), propertiesConfig.getUserInfoUrl(),fclInfoDto.getUserId()); 152 , fclInfoDto.getFdxLogin(), fclInfoDto.getOAuthSecret(), propertiesConfig.getUserInfoUrl(),fclInfoDto.getUserId());
......