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
f2b15311
Commit
f2b15311
authored
Apr 17, 2014
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
閲覧ログ送信 1件でも送信失敗した場合PC側にバッファされている全ての閲覧ログが残り再送信され続ける問題修正
parent
ba5c1c73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
abvw/common/js/common.js
+23
-3
No files found.
abvw/common/js/common.js
View file @
f2b15311
...
@@ -2551,11 +2551,23 @@ function RegisterLog() {
...
@@ -2551,11 +2551,23 @@ function RegisterLog() {
pageLog
:
pageLogJson
,
pageLog
:
pageLogJson
,
objectLog
:
objectLogJson
objectLog
:
objectLogJson
};
};
//API送信結果判定
arrContentLogs
[
nIndex
].
sendResult
=
false
;
avwCmsApiSync
(
ClientData
.
userInfo_accountPath
(),
"contentReadingLog"
,
'post'
,
params
,
avwCmsApiSync
(
ClientData
.
userInfo_accountPath
(),
"contentReadingLog"
,
'post'
,
params
,
null
,
function
(
data
)
{
if
(
data
.
result
==
'success'
)
{
//成功したログは削除
arrContentLogs
[
nIndex
].
sendResult
=
true
;
}
},
function
(
xhr
,
b
,
c
)
{
function
(
xhr
,
b
,
c
)
{
if
(
xhr
.
status
!=
0
)
{
if
(
xhr
.
status
!=
0
)
{
isError
=
true
;
isError
=
true
;
var
xhrData
=
JSON
.
parse
(
xhr
.
responseText
);
if
(
xhrData
&&
xhrData
.
httpStatus
==
500
)
{
//なんらか不正なデータなので送信成功にして捨てる
arrContentLogs
[
nIndex
].
sendResult
=
true
;
}
}
}
else
{
else
{
showSystemError
();
showSystemError
();
...
@@ -2568,6 +2580,15 @@ function RegisterLog() {
...
@@ -2568,6 +2580,15 @@ function RegisterLog() {
// Clear logs in local
// Clear logs in local
if
(
!
isError
)
{
if
(
!
isError
)
{
ClientData
.
ContentLogData
([]);
ClientData
.
ContentLogData
([]);
}
else
{
//送信成功したログは削除
var
arrTarget
=
[];
for
(
var
nIndex
=
0
;
nIndex
<
arrContentLogs
.
length
;
nIndex
++
)
{
if
(
arrContentLogs
[
nIndex
].
sendResult
==
false
){
arrTarget
.
push
(
arrContentLogs
[
nIndex
]);
}
}
ClientData
.
ContentLogData
(
arrTarget
);
}
}
};
};
...
@@ -2897,4 +2918,4 @@ function isIE10() {
...
@@ -2897,4 +2918,4 @@ function isIE10() {
}
}
*/
*/
return
false
;
return
false
;
};
};
\ No newline at end of file
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