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
92abfbd7
Commit
92abfbd7
authored
Apr 23, 2014
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
マイグレーション対応 JSONにObjectIdがなかった場合でもエラーにならないようにする
parent
8b7fdd8a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
88 additions
and
41 deletions
+88
-41
abvw/common/js/common.js
+17
-14
abvw/js/contentview_CallApi.js
+11
-7
abvw/js/contentview_GetData.js
+60
-20
No files found.
abvw/common/js/common.js
View file @
92abfbd7
...
@@ -2512,20 +2512,23 @@ function RegisterLog() {
...
@@ -2512,20 +2512,23 @@ function RegisterLog() {
for
(
var
nIndex2
=
0
;
nIndex2
<
objectLogArray
.
length
;
nIndex2
++
)
{
for
(
var
nIndex2
=
0
;
nIndex2
<
objectLogArray
.
length
;
nIndex2
++
)
{
actionDate
=
new
Date
(
objectLogArray
[
nIndex2
].
actionDate
);
actionDate
=
new
Date
(
objectLogArray
[
nIndex2
].
actionDate
);
var
line
=
[];
var
line
=
[];
line
.
push
(
actionDate
.
jpDateTimeString1
());
line
.
push
(
objectLogArray
[
nIndex2
].
pageNo
);
if
(
objectLogArray
[
nIndex2
].
objectId
){
line
.
push
(
objectLogArray
[
nIndex2
].
objectId
);
line
.
push
(
actionDate
.
jpDateTimeString1
());
line
.
push
(
objectLogArray
[
nIndex2
].
resourceId
);
line
.
push
(
objectLogArray
[
nIndex2
].
pageNo
);
line
.
push
(
objectLogArray
[
nIndex2
].
mediaType
);
line
.
push
(
objectLogArray
[
nIndex2
].
objectId
);
line
.
push
(
objectLogArray
[
nIndex2
].
actionType
);
line
.
push
(
objectLogArray
[
nIndex2
].
resourceId
);
line
.
push
(
objectLogArray
[
nIndex2
].
actionValue
);
line
.
push
(
objectLogArray
[
nIndex2
].
mediaType
);
line
.
push
(
objectLogArray
[
nIndex2
].
actionTime
);
line
.
push
(
objectLogArray
[
nIndex2
].
actionType
);
line
.
push
(
objectLogArray
[
nIndex2
].
locationX
);
line
.
push
(
objectLogArray
[
nIndex2
].
actionValue
);
line
.
push
(
objectLogArray
[
nIndex2
].
locationY
);
line
.
push
(
objectLogArray
[
nIndex2
].
actionTime
);
line
.
push
(
objectLogArray
[
nIndex2
].
locationHeight
);
line
.
push
(
objectLogArray
[
nIndex2
].
locationX
);
line
.
push
(
objectLogArray
[
nIndex2
].
locationWidth
);
line
.
push
(
objectLogArray
[
nIndex2
].
locationY
);
lines
.
push
(
line
);
line
.
push
(
objectLogArray
[
nIndex2
].
locationHeight
);
//alert("ObjectLog Line:" + JSON.stringify( line ) );
line
.
push
(
objectLogArray
[
nIndex2
].
locationWidth
);
lines
.
push
(
line
);
//alert("ObjectLog Line:" + JSON.stringify( line ) );
}
}
}
//alert("ObjectLog Lines:" + JSON.stringify( lines ) );
//alert("ObjectLog Lines:" + JSON.stringify( lines ) );
...
...
abvw/js/contentview_CallApi.js
View file @
92abfbd7
...
@@ -50,13 +50,17 @@ function webGetContentPageSize(){
...
@@ -50,13 +50,17 @@ function webGetContentPageSize(){
"webGetContent"
,
"webGetContent"
,
"GET"
,
"GET"
,
{
contentId
:
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
getType
:
6
},
{
contentId
:
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
getType
:
6
},
function
(
data
)
{
function
(
data
)
{
$
.
each
(
data
.
contentData
.
pageInfoData
.
pagesInfo
,
function
(
i
,
n
){
if
(
data
.
contentData
.
pageInfoData
.
pagesInfo
){
contentPageSizeArr
.
push
(
n
);
$
.
each
(
data
.
contentData
.
pageInfoData
.
pagesInfo
,
function
(
i
,
n
){
});
contentPageSizeArr
.
push
(
n
);
});
//Get Page size of firstPage
getPageSizeByPageNo
(
1
);
//Get Page size of firstPage
getPageSizeByPageNo
(
1
);
}
else
{
showErrorScreen
();
}
},
},
null
);
null
);
};
};
...
...
abvw/js/contentview_GetData.js
View file @
92abfbd7
...
@@ -144,8 +144,12 @@ function getMediaType1(iValueObj) {
...
@@ -144,8 +144,12 @@ function getMediaType1(iValueObj) {
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'id'
]
=
"MediaType1_"
+
iValueObj
.
action
.
actionType
;
pageObject
[
'id'
]
=
"MediaType1_"
+
iValueObj
.
action
.
actionType
;
//詳細ログ用
//詳細ログ用
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
try
{
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
}
catch
(
e
){
pageObject
[
"objectId"
]
=
""
;
}
if
(
iValueObj
.
action
.
actionType
==
0
)
{
if
(
iValueObj
.
action
.
actionType
==
0
)
{
/*get mediaInfo */
/*get mediaInfo */
...
@@ -402,8 +406,12 @@ function getMediaType2(iValueObj) {
...
@@ -402,8 +406,12 @@ function getMediaType2(iValueObj) {
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'visible'
]
=
true
;
pageObject
[
'visible'
]
=
true
;
//詳細ログ用
//詳細ログ用
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
try
{
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
}
catch
(
e
){
pageObject
[
"objectId"
]
=
""
;
}
return
pageObject
;
return
pageObject
;
};
};
...
@@ -447,8 +455,12 @@ function getMediaType3(iValueObj) {
...
@@ -447,8 +455,12 @@ function getMediaType3(iValueObj) {
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'visible'
]
=
true
;
pageObject
[
'visible'
]
=
true
;
//詳細ログ用
//詳細ログ用
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
try
{
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
}
catch
(
e
){
pageObject
[
"objectId"
]
=
""
;
}
return
pageObject
;
return
pageObject
;
};
};
...
@@ -491,8 +503,12 @@ function getMediaType4(iValueObj) {
...
@@ -491,8 +503,12 @@ function getMediaType4(iValueObj) {
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'visible'
]
=
true
;
pageObject
[
'visible'
]
=
true
;
//詳細ログ用(使わない)
//詳細ログ用(使わない)
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
try
{
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
}
catch
(
e
){
pageObject
[
"objectId"
]
=
""
;
}
return
pageObject
;
return
pageObject
;
};
};
...
@@ -523,8 +539,12 @@ function getMediaType5(iValueObj) {
...
@@ -523,8 +539,12 @@ function getMediaType5(iValueObj) {
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'visible'
]
=
true
;
pageObject
[
'visible'
]
=
true
;
//詳細ログ用(使わない)
//詳細ログ用(使わない)
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
try
{
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
}
catch
(
e
){
pageObject
[
"objectId"
]
=
""
;
}
return
pageObject
;
return
pageObject
;
};
};
...
@@ -588,8 +608,12 @@ function getMediaType6(iValueObj) {
...
@@ -588,8 +608,12 @@ function getMediaType6(iValueObj) {
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'visible'
]
=
true
;
pageObject
[
'visible'
]
=
true
;
//詳細ログ用
//詳細ログ用
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
try
{
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
}
catch
(
e
){
pageObject
[
"objectId"
]
=
""
;
}
return
pageObject
;
return
pageObject
;
};
};
...
@@ -626,8 +650,12 @@ function getMediaType7(iValueObj) {
...
@@ -626,8 +650,12 @@ function getMediaType7(iValueObj) {
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'visible'
]
=
true
;
pageObject
[
'visible'
]
=
true
;
//詳細ログ用(使わない)
//詳細ログ用(使わない)
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
try
{
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
}
catch
(
e
){
pageObject
[
"objectId"
]
=
""
;
}
return
pageObject
;
return
pageObject
;
};
};
...
@@ -679,8 +707,12 @@ function getMediaType8(iValueObj) {
...
@@ -679,8 +707,12 @@ function getMediaType8(iValueObj) {
pageObject
[
'3dview'
]
=
_3dViewObject
;
pageObject
[
'3dview'
]
=
_3dViewObject
;
}
}
//詳細ログ用
//詳細ログ用
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
try
{
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
}
catch
(
e
){
pageObject
[
"objectId"
]
=
""
;
}
return
pageObject
;
return
pageObject
;
};
};
...
@@ -700,8 +732,12 @@ function getMediaType9(iValueObj) {
...
@@ -700,8 +732,12 @@ function getMediaType9(iValueObj) {
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'visible'
]
=
true
;
pageObject
[
'visible'
]
=
true
;
//詳細ログ用
//詳細ログ用
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
try
{
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
}
catch
(
e
){
pageObject
[
"objectId"
]
=
""
;
}
if
(
iValueObj
.
action
.
actionType
==
11
){
if
(
iValueObj
.
action
.
actionType
==
11
){
var
resourceId
=
iValueObj
.
mediaInfo
.
resourceId
;
var
resourceId
=
iValueObj
.
mediaInfo
.
resourceId
;
...
@@ -742,8 +778,12 @@ function getMediaType11(iValueObj) {
...
@@ -742,8 +778,12 @@ function getMediaType11(iValueObj) {
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'height'
]
=
iValueObj
.
location
.
height
;
pageObject
[
'visible'
]
=
true
;
pageObject
[
'visible'
]
=
true
;
//詳細ログ用
//詳細ログ用
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
try
{
pageObject
[
"objectId"
]
=
iValueObj
.
action
.
objectId
;
}
catch
(
e
){
pageObject
[
"objectId"
]
=
""
;
}
if
(
iValueObj
.
action
.
actionType
==
12
){
if
(
iValueObj
.
action
.
actionType
==
12
){
var
resourceId
=
iValueObj
.
mediaInfo
.
resourceId
;
var
resourceId
=
iValueObj
.
mediaInfo
.
resourceId
;
...
...
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