From b7e66aac92be73bfb0adabd8604444159d362beb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?hagjoon=28=EC=9D=B4=ED=95=99=EC=A4=80=29?= Date: Thu, 15 Sep 2022 16:59:33 +0900 Subject: [PATCH 1/3] =?UTF-8?q?authSaga.ts=20=EC=BD=98=EC=86=94=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/account/login/sagas/authSaga.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/account/login/sagas/authSaga.ts b/src/modules/account/login/sagas/authSaga.ts index b29817a..f214f98 100644 --- a/src/modules/account/login/sagas/authSaga.ts +++ b/src/modules/account/login/sagas/authSaga.ts @@ -122,7 +122,7 @@ function* userLogoutSaga() { // console.log('dddddddddddddddddddddddddddddddddddd'); const decodedToken = decode(accessToken); const res = yield call(authAPI.usersLogout, decodedToken.cstmrSno); - console.log('res>>>>>>>>', res); + // console.log('res>>>>>>>>', res); // if(res.data=="SUCCESS"){ // location.reload(); // } From 5f604008246ba8f9989fe8be5692213c770c2e45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?scnoh=28=EB=85=B8=EC=8A=B9=EC=B2=A0=29?= Date: Thu, 15 Sep 2022 17:15:36 +0900 Subject: [PATCH 2/3] =?UTF-8?q?Naver=20Search=20Key,=20Host=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 7 +++++++ .env.production | 7 +++++++ src/configs/constants.js | 5 +++++ 3 files changed, 19 insertions(+) diff --git a/.env.development b/.env.development index 69e358d..3dbcad7 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,10 @@ REACT_APP_HOST = http://localhost:8080/ REACT_APP_WS_HOST = ws://localhost:8081/ws REACT_APP_IMAGE_HOST = https://palnet-file.s3.ap-northeast-2.amazonaws.com/ + +# Naver Search API HOST +NAVER_SEARCH_API_HOST = https://openapi.naver.com/v1/search/local.json + +# API KEY +NAVER_APP_CLIENT_KEY = WGEct3bJhQC0pyMsP_GK +NAVER_APP_SECRET_KEY = Q4K4OtUYol \ No newline at end of file diff --git a/.env.production b/.env.production index dfd5973..8c3a5c0 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,10 @@ REACT_APP_HOST = http://pav.palntour.com:8080/ REACT_APP_WS_HOST = ws://pav.palntour.com:8081/ws REACT_APP_IMAGE_HOST = https://palnet-file.s3.ap-northeast-2.amazonaws.com/ + +# Naver Search API HOST +NAVER_SEARCH_API_HOST = https://openapi.naver.com/v1/search/local.json + +# API KEY +NAVER_APP_CLIENT_KEY = WGEct3bJhQC0pyMsP_GK +NAVER_APP_SECRET_KEY = Q4K4OtUYol \ No newline at end of file diff --git a/src/configs/constants.js b/src/configs/constants.js index 14ff7e6..a492a6d 100644 --- a/src/configs/constants.js +++ b/src/configs/constants.js @@ -1,9 +1,14 @@ // 호스트 export const HOST = process.env.REACT_APP_HOST; export const WS_HOST = process.env.REACT_APP_WS_HOST; +export const NAVER_SEARCH_API_HOST = process.env.NAVER_SEARCH_API_HOST; export const IMG_PATH = process.env.REACT_APP_IMAGE_HOST; +// API KEY +export const NAVER_APP_CLIENT_KEY = process.env.NAVER_APP_CLIENT_KEY; +export const NAVER_APP_SECRET_KEY = process.env.NAVER_APP_SECRET_KEY; + // 통신 코드 export const HTTP_STATUS_CODE = { OK: '00000' From d87e1f42893a809b7ffe01e2164a9d8ecd9d8514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?qkr7828=28=EB=B0=95=EC=9E=AC=EC=9A=B0=29?= Date: Thu, 15 Sep 2022 17:48:41 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=EA=B7=B8=EB=A3=B9=EB=AA=85=20=EC=A4=91?= =?UTF-8?q?=EB=B3=B5=EB=90=9C=20=EA=B2=BD=EC=9A=B0=20=EC=A4=91=EB=B3=B5?= =?UTF-8?q?=EC=95=8C=EB=A6=BC=20=EC=B6=9C=EB=A0=A5=ED=95=98=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/basis/group/sagas/basisGroupSaga.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/modules/basis/group/sagas/basisGroupSaga.ts b/src/modules/basis/group/sagas/basisGroupSaga.ts index c5735cb..8134796 100644 --- a/src/modules/basis/group/sagas/basisGroupSaga.ts +++ b/src/modules/basis/group/sagas/basisGroupSaga.ts @@ -128,7 +128,18 @@ function* createGroupSaga( }) ); } else { - throw Error; + if (data.errorCode === 'DT002') { + yield put( + MessageActions.IS_ERROR({ + errorCode: ERROR_MESSAGE.code, + errorMessage: data.errorMessage + ' (그룹명)', + isHistoryBack: false, + isRefresh: false + }) + ); + } else{ + throw Error; + } } } catch (error) { yield put(