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",
|
||||
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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user