fixed warning message
This commit is contained in:
@@ -101,7 +101,11 @@ export const getHttpHeaderForServiceRequest =
|
|||||||
};
|
};
|
||||||
convertedRes["X-Device-Personalization"] = "Y";
|
convertedRes["X-Device-Personalization"] = "Y";
|
||||||
|
|
||||||
convertedRes["app_id"] = appinfo.id;
|
if(window.PalmSystem && window.PalmSystem.identifier){
|
||||||
|
convertedRes["app_id"] = window.PalmSystem.identifier ?? appinfo.id;
|
||||||
|
}else{
|
||||||
|
convertedRes["app_id"] = appinfo.id;
|
||||||
|
}
|
||||||
//todo temp
|
//todo temp
|
||||||
convertedRes["app_ver"] = "1.0.0"; //appinfo.version;
|
convertedRes["app_ver"] = "1.0.0"; //appinfo.version;
|
||||||
convertedRes["cntry_cd"] = res["X-Device-Country"];
|
convertedRes["cntry_cd"] = res["X-Device-Country"];
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export const TAxios = (
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const executeRequest = (accessToken, dispatch, getState) => {
|
const executeRequest = (accessToken) => {
|
||||||
const httpHeader = getState().common.httpHeader;
|
const httpHeader = getState().common.httpHeader;
|
||||||
const { mbr_no, deviceId } = getState().common.appStatus;
|
const { mbr_no, deviceId } = getState().common.appStatus;
|
||||||
const refreshToken = getState().localSettings.refreshToken;
|
const refreshToken = getState().localSettings.refreshToken;
|
||||||
@@ -95,16 +95,16 @@ export const TAxios = (
|
|||||||
//AccessToken 만료
|
//AccessToken 만료
|
||||||
if(res?.data?.retCode === 401){
|
if(res?.data?.retCode === 401){
|
||||||
dispatch(getReAuthenticationCode());
|
dispatch(getReAuthenticationCode());
|
||||||
checkAccessToken().then((accessToken) => {
|
checkAccessToken().then((token) => {
|
||||||
executeRequest(accessToken, dispatch, getState);
|
executeRequest(token);
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//RefreshToken 만료
|
//RefreshToken 만료
|
||||||
if(res?.data?.retCode === 402 ){
|
if(res?.data?.retCode === 402 ){
|
||||||
dispatch(getAuthenticationCode());
|
dispatch(getAuthenticationCode());
|
||||||
checkAccessToken().then((accessToken) => {
|
checkAccessToken().then((token) => {
|
||||||
executeRequest(accessToken, dispatch, getState);
|
executeRequest(token);
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -118,7 +118,7 @@ export const TAxios = (
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
checkAccessToken().then((accessToken) => {
|
checkAccessToken().then((token) => {
|
||||||
executeRequest(accessToken, dispatch, getState);
|
executeRequest(token);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ export const launchMembershipAppNew = (
|
|||||||
subscribe: false,
|
subscribe: false,
|
||||||
parameters: {
|
parameters: {
|
||||||
category: "MembershipApp",
|
category: "MembershipApp",
|
||||||
params: { query: "", appReturn: { appId: appinfo.id } },
|
params: { query: "", appReturn: { appId: window.PalmSystem.identifier ?? appinfo.id } },
|
||||||
},
|
},
|
||||||
onSuccess,
|
onSuccess,
|
||||||
onFailure,
|
onFailure,
|
||||||
@@ -150,7 +150,7 @@ export const launchMembershipApp = (
|
|||||||
subscribe: false,
|
subscribe: false,
|
||||||
parameters: {
|
parameters: {
|
||||||
id: "com.webos.app.membership",
|
id: "com.webos.app.membership",
|
||||||
params: { query: "", appReturn: { appId: appinfo.id } },
|
params: { query: "", appReturn: { appId: window.PalmSystem.identifier ?? appinfo.id } },
|
||||||
},
|
},
|
||||||
onSuccess,
|
onSuccess,
|
||||||
onFailure,
|
onFailure,
|
||||||
|
|||||||
@@ -57,7 +57,6 @@ const SubCategory = ({ order, scrollTopBody, catCd }) => {
|
|||||||
const [firstChk, SetFirstChk] = useState(false);
|
const [firstChk, SetFirstChk] = useState(false);
|
||||||
|
|
||||||
const timerRef = useRef();
|
const timerRef = useRef();
|
||||||
const scrollRef = useRef();
|
|
||||||
|
|
||||||
const { scrollTopByDistance } = useScrollTopByDistance();
|
const { scrollTopByDistance } = useScrollTopByDistance();
|
||||||
const { cursorVisible } = useSelector((state) => state.common.appStatus);
|
const { cursorVisible } = useSelector((state) => state.common.appStatus);
|
||||||
@@ -203,7 +202,6 @@ const SubCategory = ({ order, scrollTopBody, catCd }) => {
|
|||||||
direction="horizontal"
|
direction="horizontal"
|
||||||
cbScrollTo={getScrollTo}
|
cbScrollTo={getScrollTo}
|
||||||
noScrollByWheel
|
noScrollByWheel
|
||||||
ref={scrollRef}
|
|
||||||
>
|
>
|
||||||
{categoryItemInfos &&
|
{categoryItemInfos &&
|
||||||
categoryItemInfos.map(
|
categoryItemInfos.map(
|
||||||
|
|||||||
Reference in New Issue
Block a user