issue#1 Support error screen. Support notification balloon for neflix service preparing. Going on tune up UI.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* @summary short description for the file
|
||||
* @author Joel <joel.kim@centirm.com>
|
||||
*
|
||||
* Created at : 2020-11-26 02:21:56
|
||||
* Created at : 2020-11-26 02:21:56
|
||||
* Last modified : 2020-11-26 15:31:40
|
||||
*/
|
||||
|
||||
@@ -21,7 +21,8 @@ HotelTV.api = (function() {
|
||||
_token = "aLc*eBgTijklRnopq4s",
|
||||
_registered = false,
|
||||
_exist = false,
|
||||
_svr_port = 0;
|
||||
_svr_port = 0,
|
||||
_1stBoot = false;
|
||||
|
||||
//// 비공개 프로퍼티
|
||||
|
||||
@@ -29,7 +30,7 @@ HotelTV.api = (function() {
|
||||
|
||||
//// 비공개 매써드
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
function __apifxn_init(param) {
|
||||
_api_ver = param.api_ver;
|
||||
@@ -41,6 +42,7 @@ HotelTV.api = (function() {
|
||||
_token = param.apikey;
|
||||
_registered = param.registered;
|
||||
_exist = param.exist;
|
||||
_1stBoot = param.firstBoot;
|
||||
}
|
||||
|
||||
|
||||
@@ -200,17 +202,17 @@ HotelTV.api = (function() {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (HotelTV.state.token) {
|
||||
let _token = HotelTV.state.token;
|
||||
__apifxn_init({ 'dev_familly': model, 'serial_num': serial, 'svr_ip': ip, 'svr_port': port, 'api_ver': _token.version, "license": _token.license, "apikey": _token.apikey, "registered": _token.registered, "exist": _token.exist });
|
||||
__apifxn_init({ 'dev_familly': model, 'serial_num': serial, 'svr_ip': ip, 'svr_port': port, 'api_ver': _token.version, "license": _token.license, "apikey": _token.apikey, "registered": _token.registered, "exist": _token.exist, "firstBoot": false });
|
||||
resolve(0);
|
||||
} else {
|
||||
// licenses api format
|
||||
// licenses api format
|
||||
// <svr ip:svr port>/api/licenses/us761h0n/103INLV4B896
|
||||
var sz_api_url = "http://" + ip + ":" + port + "/api/licenses" + "/" + model + "/" + serial;
|
||||
console.log("Debug: request token url:" + sz_api_url);
|
||||
__apifxn_CallCmsApi("GET", sz_api_url, "GetToken", null).then(_result => {
|
||||
//console.log(`Success::>${_result.data}`);
|
||||
HotelTV.state.token = JSON.parse(_result.data);
|
||||
__apifxn_init({ 'dev_familly': model, 'serial_num': serial, 'svr_ip': ip, 'svr_port': port, 'api_ver': HotelTV.state.token.version, "license": HotelTV.state.token.license, "apikey": HotelTV.state.token.apikey, "registered": HotelTV.state.token.registered, "exist": HotelTV.state.token.exist });
|
||||
__apifxn_init({ 'dev_familly': model, 'serial_num': serial, 'svr_ip': ip, 'svr_port': port, 'api_ver': HotelTV.state.token.version, "license": HotelTV.state.token.license, "apikey": HotelTV.state.token.apikey, "registered": HotelTV.state.token.registered, "exist": HotelTV.state.token.exist, "firstBoot": HotelTV.state.token.firstBoot });
|
||||
resolve(0);
|
||||
}).catch(_error => {
|
||||
console.log(`Failure::>${_error.reason}`);
|
||||
@@ -506,7 +508,7 @@ HotelTV.api = (function() {
|
||||
},
|
||||
|
||||
/**
|
||||
* HotelTV API ::> order amenity
|
||||
* HotelTV API ::> order amenity
|
||||
* @param {dictionary} _cart_id if _item_id isn't null it will return specified info with _item_id
|
||||
*/
|
||||
PutAmenityOrders: function(_cart_item) {
|
||||
@@ -607,7 +609,7 @@ HotelTV.api = (function() {
|
||||
},
|
||||
|
||||
/**
|
||||
* HotelTV API ::> order room service
|
||||
* HotelTV API ::> order room service
|
||||
* @param {dictionary} _cart_id if _item_id isn't null it will return specified info with _item_id
|
||||
*/
|
||||
PutRoomserviceOrders: function(_cart_item) {
|
||||
|
||||
Reference in New Issue
Block a user