261028_02_ENH: 새로운 카트 연결하면서 구버전 kfunc 관련 오류 잡음
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
|
||||
|
||||
<!-- js 기능 모듈화 -->
|
||||
<script src="/js/kfunc.js?ver=4.1"></script>
|
||||
<script src="/js/kfunc.js?dt=<%=date_time() %>"></script>
|
||||
<script src="/js/knode.js?ver=3.1"></script>
|
||||
<script src="/js/polyfill.js?ver=3.1"></script>
|
||||
<script src="/js/bluebird.min.js"></script>
|
||||
|
||||
@@ -109,8 +109,18 @@
|
||||
END IF
|
||||
|
||||
'-- 20251029 박준성 당분간 모든 요청에 대해서 서버에 로그를 쌓기'
|
||||
On Error Resume Next
|
||||
|
||||
Err.Clear
|
||||
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
|
||||
Response.Status = "401 Unauthorized"
|
||||
Response.AddHeader "Cache-Control", "no-store"
|
||||
|
||||
@@ -134,16 +134,25 @@ 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;
|
||||
|
||||
if (remaining === 0) {
|
||||
form.attr("onsubmit", "");
|
||||
form.submit();
|
||||
return;
|
||||
}
|
||||
|
||||
waits.forEach(function (wait) {
|
||||
wait.always(function () {
|
||||
remaining--;
|
||||
|
||||
if (remaining === 0) {
|
||||
form.attr("onsubmit", "");
|
||||
form.submit();
|
||||
@@ -192,38 +201,43 @@ kon.survey = (function () {
|
||||
}
|
||||
|
||||
function callKartDerived(pkey, idkey) {
|
||||
var url = KART_BASE_URL
|
||||
+ "/project/" + KART_PROJECT_TYPE
|
||||
+ "/" + encodeURIComponent(pkey)
|
||||
+ "/derived/respondent/" + encodeURIComponent(idkey)
|
||||
+ "/recalculate";
|
||||
try{
|
||||
var url = KART_BASE_URL
|
||||
+ "/project/" + KART_PROJECT_TYPE
|
||||
+ "/" + encodeURIComponent(pkey)
|
||||
+ "/derived/respondent/" + encodeURIComponent(idkey)
|
||||
+ "/recalculate";
|
||||
|
||||
logExternalApi("DERIVED", idkey, "", "REQUEST", "");
|
||||
logExternalApi("DERIVED", idkey, "", "REQUEST", "");
|
||||
|
||||
return $.ajax({
|
||||
url: url,
|
||||
type: "POST",
|
||||
headers: {
|
||||
"X-API-Key": KON_KIWI_API_KEY
|
||||
},
|
||||
dataType: "json",
|
||||
cache: false,
|
||||
timeout: 60000,
|
||||
return $.ajax({
|
||||
url: url,
|
||||
type: "POST",
|
||||
headers: {
|
||||
"X-API-Key": KON_KIWI_API_KEY
|
||||
},
|
||||
dataType: "json",
|
||||
cache: false,
|
||||
timeout: 60000,
|
||||
|
||||
success: function (data, status, xhr) {
|
||||
logExternalApi(
|
||||
"DERIVED", idkey, "", "SUCCESS",
|
||||
"HTTP " + xhr.status
|
||||
);
|
||||
},
|
||||
success: function (data, status, xhr) {
|
||||
logExternalApi(
|
||||
"DERIVED", idkey, "", "SUCCESS",
|
||||
"HTTP " + xhr.status
|
||||
);
|
||||
},
|
||||
|
||||
error: function (xhr, status) {
|
||||
logExternalApi(
|
||||
"DERIVED", idkey, "", "FAIL",
|
||||
"HTTP " + xhr.status + " / " + status
|
||||
);
|
||||
}
|
||||
});
|
||||
error: function (xhr, status) {
|
||||
logExternalApi(
|
||||
"DERIVED", idkey, "", "FAIL",
|
||||
"HTTP " + xhr.status + " / " + status
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
catch(ex){
|
||||
return $.Deferred().resolve().promise();
|
||||
}
|
||||
}
|
||||
|
||||
function callContactStatusApi(contactMappingList, idkey, statuses) {
|
||||
|
||||
Reference in New Issue
Block a user