deviceid error

This commit is contained in:
yonghyon
2024-03-08 10:16:57 +09:00
parent 6759561acf
commit 945128b127
3 changed files with 2 additions and 20 deletions

View File

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

View File

@@ -1,5 +1,4 @@
import LS2Request from "./LS2Request";
import * as Config from '../utils/Config';
export const getConnectionStatus = ({ onSuccess, onFailure, onComplete }) => {
if (process.env.REACT_APP_MODE === "DEBUG") {
@@ -88,19 +87,3 @@ export const getHttpHeaderForServiceRequest = ({
});
}
};
export const getDeviceId = (parameters, {onSuccess, onFailure, onComplete}) => {
if (typeof window === 'object' && window.PalmSystem) {
return new LS2Request().send({
service: 'luna://com.webos.service.sm',
method: 'deviceid/getIDs',
subscribe: false,
parameters: parameters,
onSuccess,
onFailure,
onComplete
});
}else{
onSuccess({returnValue: true, idList: [{idValue: Config.DEBUG_WINDOW_DEVICEID, idtype:"LGUDID"}]});
onComplete();
}
};

View File

@@ -7,7 +7,7 @@ export const SFT_TEST = "5555";
export const SFT_TEST2 = "6666";
export const DEFAULT_SERVERTYPE = "qt2"; //system, qt2, qt, prd
export const DEFAULT_RIC_CODE = "aic"; //system, aic, eic, ruc
export const DEBUG_WINDOW_DEVICEID = 'testdevice';
export const DEBUG_WINDOW_DEVICEID = 'testdeviceid';
export const panel_names = {
INTRO_PANEL: "intropanel",
HOME_PANEL: "homepanel",