feat: API KEY 정보 fix

main
Jonguk. Lim 3 months ago
parent 833080747a
commit c96c47eeaa

@ -83,7 +83,7 @@ public class MobilePageController {
public IApiResponse findKtMblPage(@RequestParam final String token, final HttpServletRequest request) {
final String uri = request.getRequestURI();
final KtTokenDTO.KtTokenConfirmRequest cfmReqDTO = KtTokenDTO.KtTokenConfirmRequest.builder()
.signguCode(SignguCode.TRAFFIC.getCode())
.signguCode(SignguCode.CHUNCHEON.getCode())
.ffnlgCode(ApiConstants.FFNLN_CODE)
.accessToken(token)
.build();

@ -1,5 +1,9 @@
package kr.xit.biz.nice.service;
import org.apache.commons.lang3.ObjectUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import kr.xit.biz.cmm.service.CmmEnsCacheService;
import kr.xit.biz.common.ApiConstants.NiceCiWrkDiv;
import kr.xit.biz.common.ApiConstants.SignguCode;
@ -22,9 +26,6 @@ import kr.xit.ens.nice.cmm.CmmNiceCiUtils;
import kr.xit.ens.nice.service.INiceCiService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.ObjectUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
* <pre>
@ -252,14 +253,15 @@ public class BizNiceCiService extends AbstractService implements IBizNiceCiServi
* @param wrkDiv NiceCiWrkDiv
* </pre>
*/
// FIXME : SignguCode
private void updateNiceCerfInfoSync(final NiceCiInfo niceDTO, final NiceCiRequest reqDTO, final NiceCiWrkDiv wrkDiv) {
// 교통시설운영처 또는 장사시설인 경우 sync ----------------------------------------
if(SignguCode.TRAFFIC.getCode().equals(reqDTO.getSignguCode())){
if(SignguCode.CHUNCHEON.getCode().equals(reqDTO.getSignguCode())){
niceDTO.setSignguCode(SignguCode.FUNERAL.getCode());
}
if(SignguCode.FUNERAL.getCode().equals(reqDTO.getSignguCode())){
niceDTO.setSignguCode(SignguCode.TRAFFIC.getCode());
niceDTO.setSignguCode(SignguCode.CHUNCHEON.getCode());
}
switch(wrkDiv){

@ -8,9 +8,9 @@ spring:
primary:
database: oracle
driver-class-name: oracle.jdbc.OracleDriver
jdbc-url: jdbc:oracle:thin:@211.119.124.118:1521:bustms
username: iup
password: iup!0202
jdbc-url: jdbc:oracle:thin:@211.119.124.117:1521:ora11g
username: xit_traffic
password: traffic5
pool-name: xit-oracle-pool
devtools:

@ -16,9 +16,9 @@ spring:
secondary:
database: oracle
driver-class-name: oracle.jdbc.OracleDriver
jdbc-url: jdbc:oracle:thin:@211.119.124.118:1521:bustms
username: iup
password: iup!0202
jdbc-url: jdbc:oracle:thin:@211.119.124.117:1521:ora11g
username: xit_traffic
password: traffic5
read-only: false
pool-name: xit-oracle-pool
auto-commit: false

@ -43,6 +43,9 @@
kakao_product_cd, /* 카카오 상품 코드 */
kakao_access_token, /* 카카오 access token */
kakao_contract_uuid, /* 카카오 contract uuid */
kakao_partner_rest_api_key, /* 카카오 partner key */
kakao_dealer_rest_api_key, /* 카카오 dealer key */
IF(#{profile} = 'prod', kakao_prod_settle_id, kakao_dev_settle_id) AS kakaoSettleId, /* 카카오 settle id */
kt_client_id, /* KT client id */
kt_client_tp, /* KT client tp */
kt_scope, /* KT scope */

@ -1,6 +1,7 @@
package kr.xit.biz.ens.model.cmm;
import java.io.Serializable;
import kr.xit.biz.common.AuditFields;
import lombok.AllArgsConstructor;
import lombok.Data;
@ -68,6 +69,18 @@ public class CmmEnsRlaybsnmDTO extends AuditFields implements Serializable {
* KAKAO CONTRACT UUID
*/
private String kakaoContractUuid;
/**
* KAKAO_NEW PARTNER KEY
*/
private String kakaoPartnerRestApiKey;
/**
* KAKAO_NEW DEALER KEY
*/
private String kakaoDealerRestApiKey;
/**
* KAKAO_NEW SETTLE ID
*/
private String kakaoSettleId;
/**
* KT client id
*/

@ -132,10 +132,10 @@ public class ApiWebClientUtil {
// FIXME: Kkotalk 값 설정
Map<String, String> map = new HashMap<>();
map.put(Constants.JwtToken.PARTNER_REST_API_KEY.getCode(),
String.format("KakaoAK %s", ensDTO.getKakaoAccessToken()));
String.format("KakaoAK %s", ensDTO.getKakaoPartnerRestApiKey()));
map.put(HttpHeaders.AUTHORIZATION,
String.format("KakaoAK %s", ensDTO.getKakaoContractUuid()));
map.put(Constants.JwtToken.SETTLE_ID.getCode(), "");
String.format("KakaoAK %s", ensDTO.getKakaoDealerRestApiKey()));
map.put(Constants.JwtToken.SETTLE_ID.getCode(), ensDTO.getKakaoSettleId());
return exchange(url, method, body, rtnClzz, map);
}

Loading…
Cancel
Save