feat: 기능 개선
🕐 커밋 시간: 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 🔧 주요 변경 내용: • 핵심 비즈니스 로직 개선 • 소규모 기능 개선
This commit is contained in:
@@ -79,9 +79,21 @@ export const getHttpHeaderForServiceRequest = ({
|
|||||||
method: "getHttpHeaderForServiceRequest",
|
method: "getHttpHeaderForServiceRequest",
|
||||||
subscribe: true,
|
subscribe: true,
|
||||||
parameters: {},
|
parameters: {},
|
||||||
onSuccess,
|
onSuccess: (res) => {
|
||||||
onFailure,
|
try {
|
||||||
onComplete,
|
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;
|
return httpHeaderHandler;
|
||||||
} else {
|
} else {
|
||||||
@@ -90,7 +102,7 @@ export const getHttpHeaderForServiceRequest = ({
|
|||||||
const userNumber =
|
const userNumber =
|
||||||
serverType === "prd" ? "US2412306099093" : "US2210240095608";
|
serverType === "prd" ? "US2412306099093" : "US2210240095608";
|
||||||
|
|
||||||
onSuccess({
|
const mockRes = {
|
||||||
HOST: "qt2-US.nextlgsdp.com",
|
HOST: "qt2-US.nextlgsdp.com",
|
||||||
"X-User-Number": userNumber,
|
"X-User-Number": userNumber,
|
||||||
Authorization:
|
Authorization:
|
||||||
@@ -110,7 +122,12 @@ export const getHttpHeaderForServiceRequest = ({
|
|||||||
"X-Device-SDK-VERSION": "1.0.0",
|
"X-Device-SDK-VERSION": "1.0.0",
|
||||||
"X-Device-Eula":
|
"X-Device-Eula":
|
||||||
"additionalDataAllowed,takeOnAllowed,networkAllowed,generalTermsAllowed,chpAllowed,customAdAllowed,acrOnAllowed,voice2Allowed,voiceAllowed,acrAdAllowed",
|
"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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -303,7 +303,11 @@ export default function MyInfo({ title, cbScrollTo }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<THeader title={title} aria-label={title + " Heading 1"} />
|
<THeader title={title} aria-label={title + " Heading 1"}>
|
||||||
|
{serverHOST && (
|
||||||
|
<span className={css.serverHostBadge}>[serverHost] {serverHOST}</span>
|
||||||
|
)}
|
||||||
|
</THeader>
|
||||||
<TBody className={css.tBody} cbScrollTo={cbScrollTo}>
|
<TBody className={css.tBody} cbScrollTo={cbScrollTo}>
|
||||||
<Container className={css.myInfoContainer}>
|
<Container className={css.myInfoContainer}>
|
||||||
<div className={css.contentsBox}>
|
<div className={css.contentsBox}>
|
||||||
|
|||||||
@@ -35,6 +35,17 @@
|
|||||||
font-family: @baseFont;
|
font-family: @baseFont;
|
||||||
font-weight: bold;
|
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 {
|
.infoBottomBox {
|
||||||
margin-top: 18px;
|
margin-top: 18px;
|
||||||
|
|||||||
Reference in New Issue
Block a user