261028_02_ENH: 새로운 카트 연결하면서 구버전 kfunc 관련 오류 잡음
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
<script src="/bootstrap-4.4.1/js/bootstrap.min.js"></script>
|
<script src="/bootstrap-4.4.1/js/bootstrap.min.js"></script>
|
||||||
|
|
||||||
<!-- js 기능 모듈화 -->
|
<!-- js 기능 모듈화 -->
|
||||||
<script src="/js/kfunc.js?ver=4.1"></script>
|
<script src="/js/kfunc.js?dt=<%=date_time() %>"></script>
|
||||||
<script src="/js/knode.js"></script>
|
<script src="/js/knode.js"></script>
|
||||||
<script src="/js/polyfill.js"></script>
|
<script src="/js/polyfill.js"></script>
|
||||||
<script src="/js/bluebird.min.js"></script>
|
<script src="/js/bluebird.min.js"></script>
|
||||||
@@ -41,6 +41,9 @@
|
|||||||
<!-- 자그마한 이미지 -->
|
<!-- 자그마한 이미지 -->
|
||||||
<link href="/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
|
<link href="/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
|
||||||
|
|
||||||
|
<!-- gps -->
|
||||||
|
<script type="text/javascript" src="//dapi.kakao.com/v2/maps/sdk.js?appkey=404907026ac1b7b457ea280d42a8cb8e&libraries=services"></script>
|
||||||
|
|
||||||
<!--#include virtual = "/Lib/RSExec.asp" -->
|
<!--#include virtual = "/Lib/RSExec.asp" -->
|
||||||
<%
|
<%
|
||||||
'//--- 프로젝트 정보 호출
|
'//--- 프로젝트 정보 호출
|
||||||
|
|||||||
@@ -109,8 +109,18 @@
|
|||||||
END IF
|
END IF
|
||||||
|
|
||||||
'-- 20251029 박준성 당분간 모든 요청에 대해서 서버에 로그를 쌓기'
|
'-- 20251029 박준성 당분간 모든 요청에 대해서 서버에 로그를 쌓기'
|
||||||
|
On Error Resume Next
|
||||||
|
|
||||||
|
Err.Clear
|
||||||
CALL INSERT_REQUEST_LOG(IsReject)
|
CALL INSERT_REQUEST_LOG(IsReject)
|
||||||
|
|
||||||
|
If Err.Number <> 0 Then
|
||||||
|
Response.AppendToLog " LogInsertError=" & CStr(Err.Number)
|
||||||
|
Err.Clear
|
||||||
|
End If
|
||||||
|
|
||||||
|
On Error GoTo 0
|
||||||
|
|
||||||
If IsReject = "1" Then
|
If IsReject = "1" Then
|
||||||
Response.Status = "401 Unauthorized"
|
Response.Status = "401 Unauthorized"
|
||||||
Response.AddHeader "Cache-Control", "no-store"
|
Response.AddHeader "Cache-Control", "no-store"
|
||||||
@@ -522,7 +532,7 @@
|
|||||||
SQL = SQL & " AND ( GKEY = '"&request("teamname") &"' OR pkey IN ( SELECT PKEY FROM PROJECT_EXTERNAL pe WHERE MKEY = '"& session("name") &"' ) ) "
|
SQL = SQL & " AND ( GKEY = '"&request("teamname") &"' OR pkey IN ( SELECT PKEY FROM PROJECT_EXTERNAL pe WHERE MKEY = '"& session("name") &"' ) ) "
|
||||||
END IF
|
END IF
|
||||||
''' 내부 조사 보안용 2023-02-17 박준성
|
''' 내부 조사 보안용 2023-02-17 박준성
|
||||||
IF session("name") <> "jspark@kric.com" AND session("name") <> "jelee@kric.com" AND session("name") <> "yjjeon@kric.com" THEN
|
IF session("name") <> "jspark@kric.com" AND session("name") <> "choins@kric.com" AND session("name") <> "joohee@kric.com" THEN
|
||||||
SQL = SQL & " AND GKEY <> 'M101' "
|
SQL = SQL & " AND GKEY <> 'M101' "
|
||||||
END IF
|
END IF
|
||||||
''' 내부 조사 보안용 2023-02-17 박준성
|
''' 내부 조사 보안용 2023-02-17 박준성
|
||||||
|
|||||||
@@ -136,15 +136,24 @@ kon.survey = (function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function submitNextPage(form, waits) {
|
function submitNextPage(form, waits) {
|
||||||
|
|
||||||
|
// undefined 또는 잘못된 Promise 제거
|
||||||
|
waits = waits.filter(function (wait) {
|
||||||
|
return wait && typeof wait.always === "function";
|
||||||
|
});
|
||||||
|
|
||||||
var remaining = waits.length;
|
var remaining = waits.length;
|
||||||
|
|
||||||
if (remaining === 0) {
|
if (remaining === 0) {
|
||||||
form.attr("onsubmit", "");
|
form.attr("onsubmit", "");
|
||||||
form.submit();
|
form.submit();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
waits.forEach(function (wait) {
|
waits.forEach(function (wait) {
|
||||||
wait.always(function () {
|
wait.always(function () {
|
||||||
remaining--;
|
remaining--;
|
||||||
|
|
||||||
if (remaining === 0) {
|
if (remaining === 0) {
|
||||||
form.attr("onsubmit", "");
|
form.attr("onsubmit", "");
|
||||||
form.submit();
|
form.submit();
|
||||||
@@ -193,38 +202,43 @@ kon.survey = (function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function callKartDerived(pkey, idkey) {
|
function callKartDerived(pkey, idkey) {
|
||||||
var url = KART_BASE_URL
|
try{
|
||||||
+ "/project/" + KART_PROJECT_TYPE
|
var url = KART_BASE_URL
|
||||||
+ "/" + encodeURIComponent(pkey)
|
+ "/project/" + KART_PROJECT_TYPE
|
||||||
+ "/derived/respondent/" + encodeURIComponent(idkey)
|
+ "/" + encodeURIComponent(pkey)
|
||||||
+ "/recalculate";
|
+ "/derived/respondent/" + encodeURIComponent(idkey)
|
||||||
|
+ "/recalculate";
|
||||||
|
|
||||||
logExternalApi("DERIVED", idkey, "", "REQUEST", "");
|
logExternalApi("DERIVED", idkey, "", "REQUEST", "");
|
||||||
|
|
||||||
return $.ajax({
|
return $.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
type: "POST",
|
type: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"X-API-Key": KON_API_KEY
|
"X-API-Key": KON_API_KEY
|
||||||
},
|
},
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
cache: false,
|
cache: false,
|
||||||
timeout: 60000,
|
timeout: 60000,
|
||||||
|
|
||||||
success: function (data, status, xhr) {
|
success: function (data, status, xhr) {
|
||||||
logExternalApi(
|
logExternalApi(
|
||||||
"DERIVED", idkey, "", "SUCCESS",
|
"DERIVED", idkey, "", "SUCCESS",
|
||||||
"HTTP " + xhr.status
|
"HTTP " + xhr.status
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
error: function (xhr, status) {
|
error: function (xhr, status) {
|
||||||
logExternalApi(
|
logExternalApi(
|
||||||
"DERIVED", idkey, "", "FAIL",
|
"DERIVED", idkey, "", "FAIL",
|
||||||
"HTTP " + xhr.status + " / " + status
|
"HTTP " + xhr.status + " / " + status
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
catch(ex){
|
||||||
|
return $.Deferred().resolve().promise();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function callContactStatusApi(contactMappingList, idkey, statuses) {
|
function callContactStatusApi(contactMappingList, idkey, statuses) {
|
||||||
|
|||||||
Reference in New Issue
Block a user