<오류수정>

1. PMS NO : 7550
2. (주요)작업내용 
(1) D:/Project/NEW_LMS/2020LMSYNICTE/FO/Views/CDMS/Contents.cshtml
 - 수강기록 로그 횟수 카운트 5회 체크로직 추가
This commit is contained in:
jity7777 2023-03-15 07:40:25 +00:00
parent c46f5585ef
commit f038b9384e
1 changed files with 12 additions and 1 deletions

View File

@ -359,6 +359,9 @@
resizeme(); resizeme();
//} //}
} }
let loginErrCnt = 0;
function golog(ispaging, isunload, isinning, sync) { function golog(ispaging, isunload, isinning, sync) {
ispaging = ispaging || false; ispaging = ispaging || false;
@ -440,10 +443,18 @@
_sec = 0; _sec = 0;
_loging = false; _loging = false;
//_timerlog = setInterval(golog, 1000); //_timerlog = setInterval(golog, 1000);
loginErrCnt = 0;
} else { } else {
$("#playerbox").remove(); $("#playerbox").remove();
clearInterval(_timerlog); clearInterval(_timerlog);
msg("다른 기기로 로그인되었습니다.", null, null, null, "self.close()"); loginErrCnt += 1
if (loginErrCnt > 5) {
_islogout = true;
_passunload = true;
//msg("학습로그가 정상 기록이 되지 않았습니다..", null, null, null, "self.close()");
self.close() // 영남측에서 강종으로 요청함
}
//msg("다른 기기로 로그인되었습니다.", null, null, null, "self.close()");
_islogout = true; _islogout = true;
_passunload = true; _passunload = true;
//setTimeout(function () { //setTimeout(function () {