luna test code for qt3
This commit is contained in:
@@ -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"]}));
|
||||
},
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user