Commit e4363547 by Masaru Abe

#26888: 【CMS 1.8.5】abvapi ContentReadingLogAction error

360動画の場合 panpPageLog.pageNo がundefinedの場合があったので1に置き換え
parent 0befd205
......@@ -2406,7 +2406,8 @@ COMMON.SetStartLog = function(strContentId) {
// PageLog 1ページ目セット(1レコードは必須)
if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PDF ||
CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_NoFile || CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PanoImage){
CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_NoFile ||
CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PanoImage){
var pageLog = new PageLogEntity();
pageLog.contentid = strContentId;
log.pageLogArray.push(pageLog);
......@@ -2462,6 +2463,7 @@ COMMON.SetEndLog = function(strContentId) {
// 1ページ分のページ閲覧ログを作成
COMMON.SetPageLog = function(strContentId, strPageNo) {
var arrContentLogs = ClientData.ContentLogData();
for ( var nIndex = 0; nIndex < arrContentLogs.length; nIndex++) {
......@@ -2470,7 +2472,9 @@ COMMON.SetPageLog = function(strContentId, strPageNo) {
// PageLog追加
var pageLog = new PageLogEntity();
pageLog.contentid = strContentId;
if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PanoImage){
if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PanoImage ||
CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PanoMovie ||
CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_ObjectVR){
pageLog.pageNo = strPageNo;
}else{
pageLog.pageNo = strPageNo + 1; // 0始まりのページ番号
......
......@@ -6219,8 +6219,20 @@ CONTENTVIEW.panoLog = function(log, scheme){
var panoPageLog = log;
//if(panoPageLog.pageNo == null){
// CONTENTVIEW_GENERAL.panoPageNo = 1;
//} else {
// CONTENTVIEW_GENERAL.panoPageNo = panoPageLog.pageNo;
//}
//COMMON.SetPageLog( CONTENTVIEW_GENERAL.contentID, CONTENTVIEW_GENERAL.panoPageNo);
CONTENTVIEW_GENERAL.panoPageNo = panoPageLog.pageNo;
COMMON.SetPageLog( CONTENTVIEW_GENERAL.contentID, panoPageLog.pageNo);
if(panoPageLog.pageNo == null){
COMMON.SetPageLog( CONTENTVIEW_GENERAL.contentID, 1);
} else {
COMMON.SetPageLog( CONTENTVIEW_GENERAL.contentID, CONTENTVIEW_GENERAL.panoPageNo);
}
}
};
......
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