|
|
|
|
@ -67,8 +67,15 @@ function searchAddress(page) {
|
|
|
|
|
|
|
|
|
|
// API 호출
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "https://www.juso.go.kr/addrlink/addrLinkApi.do",
|
|
|
|
|
type: "post",
|
|
|
|
|
url: "https://125.60.46.141/addrlink/addrLinkApi.do",
|
|
|
|
|
//url: "http://10.182.60.20/addrlink/addrLinkApi.do",
|
|
|
|
|
type: "post",
|
|
|
|
|
dataType: "json",
|
|
|
|
|
//url: "https://business.juso.go.kr/addrlink/addrLinkApiJsonp.do",
|
|
|
|
|
//url: "http://10.182.60.20/addrlink/addrLinkApiJsonp.do",
|
|
|
|
|
//type: "get",
|
|
|
|
|
//dataType: "jsonp",
|
|
|
|
|
//crossDomain:true,
|
|
|
|
|
data: {
|
|
|
|
|
confmKey: confmKey,
|
|
|
|
|
currentPage: page,
|
|
|
|
|
@ -76,9 +83,9 @@ function searchAddress(page) {
|
|
|
|
|
keyword: currentKeyword || keyword,
|
|
|
|
|
resultType: "json"
|
|
|
|
|
},
|
|
|
|
|
dataType: "json",
|
|
|
|
|
success: function(data) {
|
|
|
|
|
if(data.results.common.errorCode != "0") {
|
|
|
|
|
console.log(data);
|
|
|
|
|
if(data.results.common.errorCode != "0") {
|
|
|
|
|
alert(data.results.common.errorMessage);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
@ -135,7 +142,9 @@ function searchAddress(page) {
|
|
|
|
|
},
|
|
|
|
|
error: function(xhr, status, error) {
|
|
|
|
|
alert("주소 검색 중 오류가 발생했습니다.");
|
|
|
|
|
console.error(error);
|
|
|
|
|
console.log(xhr);
|
|
|
|
|
console.log(status);
|
|
|
|
|
console.log(error);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|