luna test code for qt3

This commit is contained in:
yonghyon
2024-02-20 17:07:08 +09:00
parent 8f46f660f7
commit accb283045
2 changed files with 8 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ export const changeLocalSettings = (status) => ({
export const getHttpHeaderForServiceRequest = onComplete => (dispatch, getState) => {
console.log('getHttpHeaderForServiceRequest ');
const { serverType, ricCodeSetting } = getState().localSettings;
lunaSend.getHttpHeaderForServiceRequest({
onSuccess: (res) => {
console.log("getHttpHeaderForServiceRequest", res);
@@ -46,6 +47,11 @@ export const getHttpHeaderForServiceRequest = onComplete => (dispatch, getState)
convertedRes["publish_flag"] = "Y";
const version = res["X-Device-Netcast-Platform-Version"] || "";
convertedRes["os_ver"] = version;
//todo: for test
if(serverType !== 'system'){
convertedRes["cntry_cd"] = 'US';
res["HOST"] = "US.nextlgsdp.com";
}
dispatch({ type: types.GET_HTTP_HEADER, payload: convertedRes });
dispatch(changeAppStatus({webOSVersion: version.substring(0,version.lastIndexOf('.')), serverHOST: res["HOST"], mbr_no: res["X-User-Number"]}));
},

View File

@@ -69,8 +69,8 @@ export const getDeviceId = (parameters, {onSuccess, onFailure, onComplete}) => {
});
}
} else {
onSuccess({ returnValue: true, idList: [{ idValue: Config.DEBUG_WINDOW_DEVICEID, idtype: "LGUDID" }],
});
// onSuccess({ returnValue: true, idList: [{ idValue: Config.DEBUG_WINDOW_DEVICEID, idtype: "LGUDID" }],
// });
onComplete();
}
};