From edb77f342667d23caacf856978ca88e662e760ef Mon Sep 17 00:00:00 2001 From: djaco Date: Wed, 13 Aug 2025 12:36:05 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B8=B0=EB=8A=A5=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit πŸ• 컀밋 μ‹œκ°„: 2025. 08. 13. 12:36:03 πŸ“Š λ³€κ²½ 톡계: β€’ 총 파일: 3개 β€’ μΆ”κ°€: +38쀄 β€’ μ‚­μ œ: -6쀄 πŸ“ μˆ˜μ •λœ 파일: ~ com.twin.app.shoptime/src/lunaSend/common.js ~ com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/MyInfo/MyInfo.jsx ~ com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/MyInfo/MyInfo.module.less πŸ”§ μ£Όμš” λ³€κ²½ λ‚΄μš©: β€’ 핡심 λΉ„μ¦ˆλ‹ˆμŠ€ 둜직 κ°œμ„  β€’ μ†Œκ·œλͺ¨ κΈ°λŠ₯ κ°œμ„  --- com.twin.app.shoptime/src/lunaSend/common.js | 27 +++++++++++++++---- .../MyPagePanel/MyPageSub/MyInfo/MyInfo.jsx | 6 ++++- .../MyPageSub/MyInfo/MyInfo.module.less | 11 ++++++++ 3 files changed, 38 insertions(+), 6 deletions(-) diff --git a/com.twin.app.shoptime/src/lunaSend/common.js b/com.twin.app.shoptime/src/lunaSend/common.js index 1c879ccf..65a3db16 100644 --- a/com.twin.app.shoptime/src/lunaSend/common.js +++ b/com.twin.app.shoptime/src/lunaSend/common.js @@ -79,9 +79,21 @@ export const getHttpHeaderForServiceRequest = ({ method: "getHttpHeaderForServiceRequest", subscribe: true, parameters: {}, - onSuccess, - onFailure, - onComplete, + onSuccess: (res) => { + try { + console.log("[serverHost][LS2] onSuccess HOST:", res && res.HOST); + console.log("[serverHost][LS2] onSuccess raw:", res); + } catch (e) {} + onSuccess && onSuccess(res); + }, + onFailure: (err) => { + console.log("[serverHost][LS2] onFailure:", err); + onFailure && onFailure(err); + }, + onComplete: (res) => { + console.log("[serverHost][LS2] onComplete:", res); + onComplete && onComplete(res); + }, }); return httpHeaderHandler; } else { @@ -90,7 +102,7 @@ export const getHttpHeaderForServiceRequest = ({ const userNumber = serverType === "prd" ? "US2412306099093" : "US2210240095608"; - onSuccess({ + const mockRes = { HOST: "qt2-US.nextlgsdp.com", "X-User-Number": userNumber, Authorization: @@ -110,7 +122,12 @@ export const getHttpHeaderForServiceRequest = ({ "X-Device-SDK-VERSION": "1.0.0", "X-Device-Eula": "additionalDataAllowed,takeOnAllowed,networkAllowed,generalTermsAllowed,chpAllowed,customAdAllowed,acrOnAllowed,voice2Allowed,voiceAllowed,acrAdAllowed", - }); + }; + try { + console.log("[serverHost][LS2][MOCK] onSuccess HOST:", mockRes.HOST); + console.log("[serverHost][LS2][MOCK] onSuccess raw:", mockRes); + } catch (e) {} + onSuccess(mockRes); } }; diff --git a/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/MyInfo/MyInfo.jsx b/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/MyInfo/MyInfo.jsx index 29705fd6..d5ef76bd 100644 --- a/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/MyInfo/MyInfo.jsx +++ b/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/MyInfo/MyInfo.jsx @@ -303,7 +303,11 @@ export default function MyInfo({ title, cbScrollTo }) { return ( <> - + + {serverHOST && ( + [serverHost] {serverHOST} + )} +
diff --git a/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/MyInfo/MyInfo.module.less b/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/MyInfo/MyInfo.module.less index c4ba4dcd..dc62be89 100644 --- a/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/MyInfo/MyInfo.module.less +++ b/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/MyInfo/MyInfo.module.less @@ -35,6 +35,17 @@ font-family: @baseFont; font-weight: bold; } + .serverHostBadge { + margin-left: auto; + margin-right: 60px; + color: fade(@COLOR_WHITE, 60%); + font-size: 22px; + line-height: 84px; + max-width: 520px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } } .infoBottomBox { margin-top: 18px;