Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
e4363547
Commit
e4363547
authored
Sep 17, 2017
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#26888: 【CMS 1.8.5】abvapi ContentReadingLogAction error
360動画の場合 panpPageLog.pageNo がundefinedの場合があったので1に置き換え
parent
0befd205
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
abvw/common/js/common.js
+6
-2
abvw/js/contentview.js
+13
-1
No files found.
abvw/common/js/common.js
View file @
e4363547
...
@@ -2406,7 +2406,8 @@ COMMON.SetStartLog = function(strContentId) {
...
@@ -2406,7 +2406,8 @@ COMMON.SetStartLog = function(strContentId) {
// PageLog 1ページ目セット(1レコードは必須)
// PageLog 1ページ目セット(1レコードは必須)
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PDF
||
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
();
var
pageLog
=
new
PageLogEntity
();
pageLog
.
contentid
=
strContentId
;
pageLog
.
contentid
=
strContentId
;
log
.
pageLogArray
.
push
(
pageLog
);
log
.
pageLogArray
.
push
(
pageLog
);
...
@@ -2462,6 +2463,7 @@ COMMON.SetEndLog = function(strContentId) {
...
@@ -2462,6 +2463,7 @@ COMMON.SetEndLog = function(strContentId) {
// 1ページ分のページ閲覧ログを作成
// 1ページ分のページ閲覧ログを作成
COMMON
.
SetPageLog
=
function
(
strContentId
,
strPageNo
)
{
COMMON
.
SetPageLog
=
function
(
strContentId
,
strPageNo
)
{
var
arrContentLogs
=
ClientData
.
ContentLogData
();
var
arrContentLogs
=
ClientData
.
ContentLogData
();
for
(
var
nIndex
=
0
;
nIndex
<
arrContentLogs
.
length
;
nIndex
++
)
{
for
(
var
nIndex
=
0
;
nIndex
<
arrContentLogs
.
length
;
nIndex
++
)
{
...
@@ -2470,7 +2472,9 @@ COMMON.SetPageLog = function(strContentId, strPageNo) {
...
@@ -2470,7 +2472,9 @@ COMMON.SetPageLog = function(strContentId, strPageNo) {
// PageLog追加
// PageLog追加
var
pageLog
=
new
PageLogEntity
();
var
pageLog
=
new
PageLogEntity
();
pageLog
.
contentid
=
strContentId
;
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
;
pageLog
.
pageNo
=
strPageNo
;
}
else
{
}
else
{
pageLog
.
pageNo
=
strPageNo
+
1
;
// 0始まりのページ番号
pageLog
.
pageNo
=
strPageNo
+
1
;
// 0始まりのページ番号
...
...
abvw/js/contentview.js
View file @
e4363547
...
@@ -6219,8 +6219,20 @@ CONTENTVIEW.panoLog = function(log, scheme){
...
@@ -6219,8 +6219,20 @@ CONTENTVIEW.panoLog = function(log, scheme){
var
panoPageLog
=
log
;
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
;
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
);
}
}
}
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment