Commit 11ca8739 by Jung Kwangkyu

#18453【DAIHATSU】閲覧ログ件数不一致

parent e23608cd
...@@ -13,12 +13,12 @@ AVWEB.hasErrorKey = 'AVW_HASERR'; ...@@ -13,12 +13,12 @@ AVWEB.hasErrorKey = 'AVW_HASERR';
* User Environment Check Class * User Environment Check Class
*/ */
var UserEnvironment = function() { var UserEnvironment = function() {
this.appName = navigator.appName; this.appName = navigator.appName;
this.userAgent = navigator.userAgent; this.userAgent = navigator.userAgent;
this.os = checkOS(this.userAgent); this.os = checkOS(this.userAgent);
this.browser = checkBrowser(this.userAgent); this.browser = checkBrowser(this.userAgent);
/* windows os check */ /* windows os check */
this.isWindows = function() { this.isWindows = function() {
return (this.os == "windows"); return (this.os == "windows");
...@@ -27,12 +27,12 @@ var UserEnvironment = function() { ...@@ -27,12 +27,12 @@ var UserEnvironment = function() {
this.isMac = function() { this.isMac = function() {
return (this.os == "mac"); return (this.os == "mac");
}; };
/* ipad check */ /* ipad check */
this.isIpad = function() { this.isIpad = function() {
return (this.os == "ipad"); return (this.os == "ipad");
}; };
/* iphone check */ /* iphone check */
this.isIphone = function() { this.isIphone = function() {
return (this.os == "iphone"); return (this.os == "iphone");
...@@ -49,7 +49,7 @@ var UserEnvironment = function() { ...@@ -49,7 +49,7 @@ var UserEnvironment = function() {
return false; return false;
} }
}; };
/** check operating system */ /** check operating system */
function checkOS(userAgent) { function checkOS(userAgent) {
if(userAgent.toLowerCase().indexOf("windows") >= 0) { if(userAgent.toLowerCase().indexOf("windows") >= 0) {
...@@ -71,7 +71,7 @@ var UserEnvironment = function() { ...@@ -71,7 +71,7 @@ var UserEnvironment = function() {
}; };
/** check user browser */ /** check user browser */
function checkBrowser(userAgent) { function checkBrowser(userAgent) {
if(userAgent.toLowerCase().indexOf("msie") >= 0) { if(userAgent.toLowerCase().indexOf("msie") >= 0) {
return "msie"; return "msie";
} }
...@@ -90,7 +90,7 @@ var UserEnvironment = function() { ...@@ -90,7 +90,7 @@ var UserEnvironment = function() {
if(userAgent.toLowerCase().indexOf("opera") >= 0) { if(userAgent.toLowerCase().indexOf("opera") >= 0) {
return "opera"; return "opera";
} }
return "unknown"; return "unknown";
}; };
}; };
...@@ -158,7 +158,7 @@ UserSetting.prototype.show = function(elmid) { ...@@ -158,7 +158,7 @@ UserSetting.prototype.show = function(elmid) {
} }
tags = tags + "</p>"; tags = tags + "</p>";
$(elmid).html(tags); $(elmid).html(tags);
} }
}; };
/* ユーザ設定のキーリストを取得 */ /* ユーザ設定のキーリストを取得 */
UserSetting.prototype.keys = function() { UserSetting.prototype.keys = function() {
...@@ -188,6 +188,7 @@ UserSetting.prototype.remove = function(key) { ...@@ -188,6 +188,7 @@ UserSetting.prototype.remove = function(key) {
delete js[key]; delete js[key];
storage.setItem(this.US_KEY, JSON.stringify(js)); storage.setItem(this.US_KEY, JSON.stringify(js));
} }
this.userSetting = this.load();
} }
} }
}; };
...@@ -196,7 +197,7 @@ UserSetting.prototype.removeAll = function() { ...@@ -196,7 +197,7 @@ UserSetting.prototype.removeAll = function() {
var storage = window.localStorage; var storage = window.localStorage;
if(storage) { if(storage) {
storage.remove(this.US_KEY); storage.remove(this.US_KEY);
} }
}; };
/* /*
...@@ -207,7 +208,7 @@ var UserSession = function() { ...@@ -207,7 +208,7 @@ var UserSession = function() {
}; };
/* Initialize User Session */ /* Initialize User Session */
UserSession.prototype.init = function(option) { UserSession.prototype.init = function(option) {
this.available = false; this.available = false;
if(option == 'restore') { if(option == 'restore') {
var value = null; var value = null;
...@@ -222,7 +223,7 @@ UserSession.prototype.init = function(option) { ...@@ -222,7 +223,7 @@ UserSession.prototype.init = function(option) {
} }
} else { } else {
this.set("init", new Date().toLocaleString()); this.set("init", new Date().toLocaleString());
this.available = true; this.available = true;
} }
}; };
/* store key, value item to user session */ /* store key, value item to user session */
...@@ -238,7 +239,7 @@ UserSession.prototype.set = function(key, value) { ...@@ -238,7 +239,7 @@ UserSession.prototype.set = function(key, value) {
} else { } else {
storage.setItem("AVWS_" + key, value); storage.setItem("AVWS_" + key, value);
} }
} }
}; };
/* get session item value */ /* get session item value */
UserSession.prototype.get = function(key) { UserSession.prototype.get = function(key) {
...@@ -248,7 +249,7 @@ UserSession.prototype.get = function(key) { ...@@ -248,7 +249,7 @@ UserSession.prototype.get = function(key) {
} else { } else {
throw new Error("Session Destroyed."); throw new Error("Session Destroyed.");
} }
return value; return value;
}; };
/* get item value from session storage */ /* get item value from session storage */
UserSession.prototype._get = function(key) { UserSession.prototype._get = function(key) {
...@@ -265,7 +266,7 @@ UserSession.prototype.destroy = function() { ...@@ -265,7 +266,7 @@ UserSession.prototype.destroy = function() {
if(storage) { if(storage) {
storage.clear(); storage.clear();
this.available = false; this.available = false;
} }
}; };
/* show user session object list */ /* show user session object list */
UserSession.prototype.show = function(elmid) { UserSession.prototype.show = function(elmid) {
...@@ -279,7 +280,7 @@ UserSession.prototype.show = function(elmid) { ...@@ -279,7 +280,7 @@ UserSession.prototype.show = function(elmid) {
} }
tags = tags + "</p>"; tags = tags + "</p>";
$(elmid).html(tags); $(elmid).html(tags);
} }
}; };
/* /*
* Variables * Variables
...@@ -291,7 +292,7 @@ AVWEB.avwSysSettingObj = null; ...@@ -291,7 +292,7 @@ AVWEB.avwSysSettingObj = null;
/* Initialize system */ /* Initialize system */
$(function () { $(function () {
// システム設定ファイルの配置先パスの決定 // システム設定ファイルの配置先パスの決定
var location = window.location.toString().toLowerCase(); var location = window.location.toString().toLowerCase();
var sysFile = ''; var sysFile = '';
...@@ -316,7 +317,7 @@ $(function () { ...@@ -316,7 +317,7 @@ $(function () {
alert(error); alert(error);
} }
}); });
// ロード時に一旦エラー状態をクリアしておく // ロード時に一旦エラー状態をクリアしておく
AVWEB.avwClearError(); AVWEB.avwClearError();
}); });
...@@ -364,13 +365,13 @@ AVWEB.avwCheckLogin = function(option) { ...@@ -364,13 +365,13 @@ AVWEB.avwCheckLogin = function(option) {
/* エラー画面を表示 */ /* エラー画面を表示 */
var tags = '<div id="avw-auth-error">' + var tags = '<div id="avw-auth-error">' +
'<div style="display:table; width:100%; height:100%;">' + '<div style="display:table; width:100%; height:100%;">' +
'<div style="display:table-cell; text-align:center; vertical-align:middle;">' + '<div style="display:table-cell; text-align:center; vertical-align:middle;">' +
'<p><h4>Authentication error</h4>Please use it after login.</p>' + '<p><h4>Authentication error</h4>Please use it after login.</p>' +
'<div><button id="avw-unauth-ok">OK</button></div>' + '<div><button id="avw-unauth-ok">OK</button></div>' +
'</div></div></div>'; '</div></div></div>';
$('body').prepend(tags); $('body').prepend(tags);
$('#avw-auth-error').css({ $('#avw-auth-error').css({
'opacity': 1, 'opacity': 1,
'position': 'fixed', 'position': 'fixed',
'top': '0', 'top': '0',
...@@ -379,14 +380,14 @@ AVWEB.avwCheckLogin = function(option) { ...@@ -379,14 +380,14 @@ AVWEB.avwCheckLogin = function(option) {
'height': $(window).height(), 'height': $(window).height(),
'zIndex': '10000' 'zIndex': '10000'
}); });
// resize error page // resize error page
$(window).resize(function() { $(window).resize(function() {
$('#avw-auth-error').css( { $('#avw-auth-error').css( {
'width': $(window).width(), 'width': $(window).width(),
'height': $(window).height() 'height': $(window).height()
}); });
}); });
var returnPage; var returnPage;
if(option) { if(option) {
returnPage = option returnPage = option
...@@ -431,10 +432,10 @@ AVWEB.avwCmsApiSyncWithUrl = function(url, accountPath, apiName, type, params, s ...@@ -431,10 +432,10 @@ AVWEB.avwCmsApiSyncWithUrl = function(url, accountPath, apiName, type, params, s
/* CMS API Call */ /* CMS API Call */
AVWEB._callCmsApi = function(url, accountPath, apiName, type, params, async, success, error) { AVWEB._callCmsApi = function(url, accountPath, apiName, type, params, async, success, error) {
// アプリケーション設定取得 // アプリケーション設定取得
var sysSettings = AVWEB.avwSysSetting(); var sysSettings = AVWEB.avwSysSetting();
// url 構築 // url 構築
var apiUrl; var apiUrl;
if(!url) { if(!url) {
...@@ -446,12 +447,12 @@ AVWEB._callCmsApi = function(url, accountPath, apiName, type, params, async, suc ...@@ -446,12 +447,12 @@ AVWEB._callCmsApi = function(url, accountPath, apiName, type, params, async, suc
apiUrl = AVWEB.format(apiUrl, accountPath); apiUrl = AVWEB.format(apiUrl, accountPath);
} }
apiUrl = apiUrl + '/' + apiName + '/'; apiUrl = apiUrl + '/' + apiName + '/';
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
// for IE: 暫定的に対応 (これをすることでIE9でもCrossDomainリクエストが可能だがアクセスのたびに警告が出る) // for IE: 暫定的に対応 (これをすることでIE9でもCrossDomainリクエストが可能だがアクセスのたびに警告が出る)
$.support.cors = true; $.support.cors = true;
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
// ajax によるAPIの実行(json) // ajax によるAPIの実行(json)
$.ajax( { $.ajax( {
async: (async) ? async : false, async: (async) ? async : false,
...@@ -486,32 +487,32 @@ AVWEB._callCmsApi = function(url, accountPath, apiName, type, params, async, suc ...@@ -486,32 +487,32 @@ AVWEB._callCmsApi = function(url, accountPath, apiName, type, params, async, suc
else { else {
AVWEB.showSystemError(); AVWEB.showSystemError();
} }
} }
} }
}); });
}; };
/* CMS API Call */ /* CMS API Call */
AVWEB._callCmsApiWhen = function(accountPath, apiName, type, params ) { AVWEB._callCmsApiWhen = function(accountPath, apiName, type, params ) {
// アプリケーション設定取得 // アプリケーション設定取得
var sysSettings = AVWEB.avwSysSetting(); var sysSettings = AVWEB.avwSysSetting();
// url 構築 // url 構築
var apiUrl = ClientData.conf_apiUrl(); var apiUrl = ClientData.conf_apiUrl();
if(accountPath) { if(accountPath) {
apiUrl = AVWEB.format(apiUrl, accountPath); apiUrl = AVWEB.format(apiUrl, accountPath);
} }
apiUrl = apiUrl + '/' + apiName + '/'; apiUrl = apiUrl + '/' + apiName + '/';
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
// for IE: 暫定的に対応 (これをすることでIE9でもCrossDomainリクエストが可能だがアクセスのたびに警告が出る) // for IE: 暫定的に対応 (これをすることでIE9でもCrossDomainリクエストが可能だがアクセスのたびに警告が出る)
$.support.cors = true; $.support.cors = true;
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
// ajax によるAPIの実行(json) // ajax によるAPIの実行(json)
var ajaxObj = $.ajax( { var ajaxObj = $.ajax( {
async: true, async: true,
...@@ -531,9 +532,9 @@ AVWEB._callCmsApiWhen = function(accountPath, apiName, type, params ) { ...@@ -531,9 +532,9 @@ AVWEB._callCmsApiWhen = function(accountPath, apiName, type, params ) {
xhr.setRequestHeader('X-AGT-AppVersion', sysSettings.appVersion); xhr.setRequestHeader('X-AGT-AppVersion', sysSettings.appVersion);
} }
}); });
return ajaxObj; return ajaxObj;
}; };
...@@ -635,18 +636,18 @@ AVWEB.avwGrabContentPageImage = function(accountPath, params, success, error) { ...@@ -635,18 +636,18 @@ AVWEB.avwGrabContentPageImage = function(accountPath, params, success, error) {
if( ClientData.isStreamingMode() ){ if( ClientData.isStreamingMode() ){
apiUrl += '&isStreaming=true'; apiUrl += '&isStreaming=true';
} }
// バイナリ形式で画像イメージを取得し、Base64にエンコードする // バイナリ形式で画像イメージを取得し、Base64にエンコードする
var xmlHttp; var xmlHttp;
var ie = false; var ie = false;
//if(window.ActiveXObject) { //if(window.ActiveXObject) {
// xmlHttp = new ActiveXObject('Msxml2.XMLHTTP'); // xmlHttp = new ActiveXObject('Msxml2.XMLHTTP');
// ie = true; // ie = true;
//} else { //} else {
//xmlHttp = new XMLHttpRequest(); //xmlHttp = new XMLHttpRequest();
//} //}
//IE10以降はXMLHttpRequestを優先して使う //IE10以降はXMLHttpRequestを優先して使う
try{ try{
xmlHttp = new XMLHttpRequest(); xmlHttp = new XMLHttpRequest();
...@@ -659,14 +660,14 @@ AVWEB.avwGrabContentPageImage = function(accountPath, params, success, error) { ...@@ -659,14 +660,14 @@ AVWEB.avwGrabContentPageImage = function(accountPath, params, success, error) {
return; return;
} }
} }
xmlHttp.open('get', apiUrl); xmlHttp.open('get', apiUrl);
xmlHttp.setRequestHeader('X-AGT-AppId', sysSettings.appName); xmlHttp.setRequestHeader('X-AGT-AppId', sysSettings.appName);
xmlHttp.setRequestHeader('X-AGT-AppVersion', sysSettings.appVersion); xmlHttp.setRequestHeader('X-AGT-AppVersion', sysSettings.appVersion);
/* /*
if(xmlHttp.overrideMimeType) { if(xmlHttp.overrideMimeType) {
// for FF, Chrome, Safari // for FF, Chrome, Safari
xmlHttp.overrideMimeType('text/plain; charset=x-user-defined'); xmlHttp.overrideMimeType('text/plain; charset=x-user-defined');
} }
*/ */
xmlHttp.onreadystatechange = function () { xmlHttp.onreadystatechange = function () {
...@@ -676,13 +677,13 @@ AVWEB.avwGrabContentPageImage = function(accountPath, params, success, error) { ...@@ -676,13 +677,13 @@ AVWEB.avwGrabContentPageImage = function(accountPath, params, success, error) {
//base64 encode //base64 encode
var ids = new ImageDataScheme(); var ids = new ImageDataScheme();
var src; // Image Data URI var src; // Image Data URI
if(ie) { if(ie) {
// for IE // for IE
src = ids.convImageToDataScheme(xmlHttp.responseBody, ie); src = ids.convImageToDataScheme(xmlHttp.responseBody, ie);
} else { } else {
// for FF, Chrome, Safari // for FF, Chrome, Safari
src = ids.convImageToDataScheme(xmlHttp.responseText, ie); src = ids.convImageToDataScheme(xmlHttp.responseText, ie);
} }
*/ */
var src; // Image Data URI var src; // Image Data URI
...@@ -692,7 +693,7 @@ AVWEB.avwGrabContentPageImage = function(accountPath, params, success, error) { ...@@ -692,7 +693,7 @@ AVWEB.avwGrabContentPageImage = function(accountPath, params, success, error) {
src = 'data:image/png;base64,' + xmlHttp.responseBody; src = 'data:image/png;base64,' + xmlHttp.responseBody;
} else { } else {
// for FF, Chrome, Safari // for FF, Chrome, Safari
src = 'data:image/png;base64,' + xmlHttp.responseText; src = 'data:image/png;base64,' + xmlHttp.responseText;
} }
*/ */
src = 'data:image/png;base64,' + xmlHttp.responseText; src = 'data:image/png;base64,' + xmlHttp.responseText;
...@@ -728,11 +729,11 @@ AVWEB.avwGrabContentPageImage = function(accountPath, params, success, error) { ...@@ -728,11 +729,11 @@ AVWEB.avwGrabContentPageImage = function(accountPath, params, success, error) {
* ] * ]
*/ */
AVWEB.avwUploadBackupFile = function(accountPath, params, async, success, error) { AVWEB.avwUploadBackupFile = function(accountPath, params, async, success, error) {
/* API実行準備*/ /* API実行準備*/
var sysSettings = AVWEB.avwSysSetting(); var sysSettings = AVWEB.avwSysSetting();
var apiName = 'uploadBackupFile'; // API名 var apiName = 'uploadBackupFile'; // API名
//url 構築 //url 構築
var apiUrl; var apiUrl;
apiUrl = ClientData.conf_apiUrl(); //sysSettings.apiUrl; apiUrl = ClientData.conf_apiUrl(); //sysSettings.apiUrl;
...@@ -740,25 +741,25 @@ AVWEB.avwUploadBackupFile = function(accountPath, params, async, success, error) ...@@ -740,25 +741,25 @@ AVWEB.avwUploadBackupFile = function(accountPath, params, async, success, error)
apiUrl = AVWEB.format(apiUrl, accountPath) apiUrl = AVWEB.format(apiUrl, accountPath)
} }
apiUrl = apiUrl + '/' + apiName + '/'; apiUrl = apiUrl + '/' + apiName + '/';
/* POST(multipart/form-data)送信準備 */ /* POST(multipart/form-data)送信準備 */
var body = ''; var body = '';
var boundary = ''; var boundary = '';
// boundaryを構築 // boundaryを構築
var date = new Date(); var date = new Date();
boundary = '------------------------' + date.getMilliseconds() boundary = '------------------------' + date.getMilliseconds()
+ (date.getMonth() + 1) + (date.getMonth() + 1)
+ date.getMinutes() + date.getMinutes()
+ date.getFullYear() + date.getFullYear()
+ date.getDay() + date.getDay()
+ date.getHours() + date.getHours()
+ date.getSeconds(); + date.getSeconds();
// bodyを構築 // bodyを構築
for(var i = 0; i < params.length; i++) { for(var i = 0; i < params.length; i++) {
var item = params[i]; var item = params[i];
body += '--' + boundary + '\r\n'; body += '--' + boundary + '\r\n';
body += 'Content-Disposition: form-data; name="' + item.name + '"'; body += 'Content-Disposition: form-data; name="' + item.name + '"';
if(item.fileName) { if(item.fileName) {
body += '; filename="' + item.fileName + '"\r\n'; body += '; filename="' + item.fileName + '"\r\n';
...@@ -772,7 +773,7 @@ AVWEB.avwUploadBackupFile = function(accountPath, params, async, success, error) ...@@ -772,7 +773,7 @@ AVWEB.avwUploadBackupFile = function(accountPath, params, async, success, error)
body += item.content + '\r\n'; body += item.content + '\r\n';
} }
body += '--' + boundary + '--\r\n'; body += '--' + boundary + '--\r\n';
// ajax によるAPIの実行(json) // ajax によるAPIの実行(json)
$.ajax( { $.ajax( {
async: (async) ? async : false, async: (async) ? async : false,
...@@ -787,7 +788,7 @@ AVWEB.avwUploadBackupFile = function(accountPath, params, async, success, error) ...@@ -787,7 +788,7 @@ AVWEB.avwUploadBackupFile = function(accountPath, params, async, success, error)
*/ */
xhr.setRequestHeader('X-AGT-AppId', sysSettings.appName); xhr.setRequestHeader('X-AGT-AppId', sysSettings.appName);
xhr.setRequestHeader('X-AGT-AppVersion', sysSettings.appVersion); xhr.setRequestHeader('X-AGT-AppVersion', sysSettings.appVersion);
/* /*
* uploadBackupFileは multipart/form-data でPOST送信する * uploadBackupFileは multipart/form-data でPOST送信する
*/ */
...@@ -807,11 +808,11 @@ AVWEB.avwUploadBackupFile = function(accountPath, params, async, success, error) ...@@ -807,11 +808,11 @@ AVWEB.avwUploadBackupFile = function(accountPath, params, async, success, error)
AVWEB.showSystemError(); AVWEB.showSystemError();
} }
} }
}); });
}; };
/* show system error message */ /* show system error message */
AVWEB.showSystemError = function(textId) { AVWEB.showSystemError = function(textId) {
if(AVWEB.avwHasError()) { if(AVWEB.avwHasError()) {
// すでにエラー状態であればエラーを表示しない // すでにエラー状態であればエラーを表示しない
return; return;
...@@ -819,11 +820,11 @@ AVWEB.showSystemError = function(textId) { ...@@ -819,11 +820,11 @@ AVWEB.showSystemError = function(textId) {
// エラー状態にセット // エラー状態にセット
AVWEB.avwSetErrorState(); AVWEB.avwSetErrorState();
} }
if( !textId ){ if( !textId ){
textId = 'sysErrorCallApi01'; textId = 'sysErrorCallApi01';
} }
// create DOM element for showing error message // create DOM element for showing error message
var errMes = I18N.i18nText(textId); var errMes = I18N.i18nText(textId);
var tags = '<div id="avw-sys-error"></div>'; var tags = '<div id="avw-sys-error"></div>';
...@@ -839,12 +840,12 @@ AVWEB.showSystemError = function(textId) { ...@@ -839,12 +840,12 @@ AVWEB.showSystemError = function(textId) {
'background': '#999', 'background': '#999',
'z-index': 90000 'z-index': 90000
}); });
// resize error page // resize error page
$(window).resize(function() { $(window).resize(function() {
$('#avw-sys-error').css( { $('#avw-sys-error').css( {
'width': $(window).width(), 'width': $(window).width(),
'height': $(window).height() 'height': $(window).height()
}); });
}); });
// show error messages // show error messages
$().toastmessage({ position: 'middle-center' }); $().toastmessage({ position: 'middle-center' });
...@@ -870,7 +871,7 @@ AVWEB.showSystemError = function(textId) { ...@@ -870,7 +871,7 @@ AVWEB.showSystemError = function(textId) {
sticky: true, sticky: true,
text: errMes, text: errMes,
close: function() { isShowErrorMessage = false; } close: function() { isShowErrorMessage = false; }
}); });
*/ */
}; };
/* エラー状態を取得 */ /* エラー状態を取得 */
...@@ -900,7 +901,7 @@ AVWEB.avwClearError = function() { ...@@ -900,7 +901,7 @@ AVWEB.avwClearError = function() {
AVWEB.avwSetLogoutNortice = function() { AVWEB.avwSetLogoutNortice = function() {
window.onbeforeunload = function(event) { window.onbeforeunload = function(event) {
//DHカスタム //DHカスタム
if( ClientData.serviceOpt_daihatsu() == 'Y'){ if( ClientData.serviceOpt_daihatsu() == 'Y'){
if( "CONTENTVIEW_GENERAL" in window ){ if( "CONTENTVIEW_GENERAL" in window ){
...@@ -910,7 +911,7 @@ AVWEB.avwSetLogoutNortice = function() { ...@@ -910,7 +911,7 @@ AVWEB.avwSetLogoutNortice = function() {
} }
} }
} else { } else {
if(ClientData.isGetitsMode() || ClientData.isStreamingMode()){ if(ClientData.isGetitsMode() || ClientData.isStreamingMode()){
if(ClientData.isGetitsMode()){ if(ClientData.isGetitsMode()){
COMMON.SetEndLog(CONTENTVIEW_GENERAL.contentID); COMMON.SetEndLog(CONTENTVIEW_GENERAL.contentID);
...@@ -923,7 +924,7 @@ AVWEB.avwSetLogoutNortice = function() { ...@@ -923,7 +924,7 @@ AVWEB.avwSetLogoutNortice = function() {
var e = event || window.event; var e = event || window.event;
if(e) { if(e) {
e.returnValue = message; e.returnValue = message;
} }
return message; return message;
} }
} }
...@@ -934,7 +935,7 @@ AVWEB.avwScreenMove = function(url) { ...@@ -934,7 +935,7 @@ AVWEB.avwScreenMove = function(url) {
window.onbeforeunload = null; window.onbeforeunload = null;
window.location = url; window.location = url;
}; };
/* Debug Log */ /* Debug Log */
AVWEB.avwLog = function(msg) { AVWEB.avwLog = function(msg) {
if(AVWEB.avwSysSetting().debug) { if(AVWEB.avwSysSetting().debug) {
console.log(msg); console.log(msg);
...@@ -966,21 +967,21 @@ AVWEB.getApiUrl = function(accountPath) { ...@@ -966,21 +967,21 @@ AVWEB.getApiUrl = function(accountPath) {
apiUrl = AVWEB.format(apiUrl, accountPath); apiUrl = AVWEB.format(apiUrl, accountPath);
} }
return apiUrl; return apiUrl;
}; };
/* get url */ /* get url */
AVWEB.getURL = function(apiName) { AVWEB.getURL = function(apiName) {
//var sysSettings = AVWEB.avwSysSetting(); //var sysSettings = AVWEB.avwSysSetting();
var isStreaming = "false"; var isStreaming = "false";
if(ClientData.isStreamingMode()){ if(ClientData.isStreamingMode()){
isStreaming = "true"; isStreaming = "true";
} }
var url = ClientData.conf_apiResourceDlUrl(); //sysSettings.apiResourceDlUrl; var url = ClientData.conf_apiResourceDlUrl(); //sysSettings.apiResourceDlUrl;
url = AVWEB.format(url, ClientData.userInfo_accountPath()) + '/' + apiName + '/?isStreaming=' + isStreaming; url = AVWEB.format(url, ClientData.userInfo_accountPath()) + '/' + apiName + '/?isStreaming=' + isStreaming;
return url; return url;
}; };
......
...@@ -569,12 +569,15 @@ COMMON.operateData = function(args, strKey, returnDefaultData) { ...@@ -569,12 +569,15 @@ COMMON.operateData = function(args, strKey, returnDefaultData) {
LocalStorageUtils.set(strKey, data); LocalStorageUtils.set(strKey, data);
SessionStorageUtils.set(strKey, JSON.stringify(data)); SessionStorageUtils.set(strKey, JSON.stringify(data));
} else { } else {
console.log("getUniqueId : " + LocalStorageUtils.getUniqueId()); if (strKey == COMMON.Keys.ContentLogData) {
LocalStorageUtils.remove(strKey); LocalStorageUtils.remove(strKey);
SessionStorageUtils.remove(strKey); SessionStorageUtils.remove(strKey);
} else {
LocalStorageUtils.set(strKey, data);
SessionStorageUtils.set(strKey, JSON.stringify(data));
}
} }
} else { } else {
if (SessionStorageUtils.get(strKey) != 'undefined' if (SessionStorageUtils.get(strKey) != 'undefined'
&& SessionStorageUtils.get(strKey) != undefined && SessionStorageUtils.get(strKey) != undefined
&& SessionStorageUtils.get(strKey) != '' && SessionStorageUtils.get(strKey) != ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment