Commit e23608cd by Jung Kwangkyu

#18453 閲覧ログ件数不一致

parent 384433ca
...@@ -565,9 +565,16 @@ COMMON.operateData = function(args, strKey, returnDefaultData) { ...@@ -565,9 +565,16 @@ COMMON.operateData = function(args, strKey, returnDefaultData) {
if (args.length > 0) { if (args.length > 0) {
var data = args[0]; var data = args[0];
if (data.length > 0) {
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());
LocalStorageUtils.remove(strKey);
SessionStorageUtils.remove(strKey);
}
} 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) != ''
...@@ -705,6 +712,7 @@ var ClientData = { ...@@ -705,6 +712,7 @@ var ClientData = {
// Local: content log collection // Local: content log collection
ContentLogData: function (data) { ContentLogData: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, COMMON.Keys.ContentLogData, []); COMMON.operateData(arguments, COMMON.Keys.ContentLogData, []);
} }
......
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