박준성 :: 20260428 :: new contact용 정보조회 :: return 양식 변경 및 cors 해제
This commit is contained in:
@@ -1,4 +1,18 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
Response.Buffer = True
|
||||
|
||||
Response.AddHeader "Access-Control-Allow-Origin", "*"
|
||||
Response.AddHeader "Access-Control-Allow-Methods", "*"
|
||||
Response.AddHeader "Access-Control-Allow-Headers", "Content-Type, Authorization, X-Requested-With"
|
||||
Response.AddHeader "Access-Control-Max-Age", "86400"
|
||||
|
||||
If Request.ServerVariables("REQUEST_METHOD") = "OPTIONS" Then
|
||||
Response.Status = "200 OK"
|
||||
Response.Write ""
|
||||
Response.End
|
||||
End If
|
||||
%>
|
||||
<%
|
||||
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''20260428 <20><><EFBFBD>ؼ<EFBFBD>'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
|
||||
'''''''''''''''''''''''''''New Contact<63><74><EFBFBD><EFBFBD> <20><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> IP<49><50> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Page'''''''''''''''''''''''''''
|
||||
@@ -12,22 +26,24 @@
|
||||
|
||||
adoRs.open query, adoconn, 1,1
|
||||
IF Not adoRs.EOF Then
|
||||
returnString = returnString & "{" & VbCrlf
|
||||
returnString = returnString & "'client_id':'" & adoRs("client_id") & "'," & VbCrlf
|
||||
returnString = returnString & " 'internal_no':'" & adoRs("internal_no") & "'," & VbCrlf
|
||||
returnString = returnString & " 'external_no':'" & adoRs("external_no") & "'," & VbCrlf
|
||||
returnString = returnString & " 'client_ip':'" & adoRs("client_ip") & "'" & VbCrlf
|
||||
returnString = returnString & "}" & VbCrlf
|
||||
returnString = "{"
|
||||
returnString = returnString & """clientId"":""" & adoRs("client_id") & ""","
|
||||
returnString = returnString & """internalNo"":""" & adoRs("internal_no") & ""","
|
||||
returnString = returnString & """externalNo"":""" & adoRs("external_no") & ""","
|
||||
returnString = returnString & """clientIp"":""" & adoRs("client_ip") & """"
|
||||
returnString = returnString & "}"
|
||||
ELSE
|
||||
returnString = returnString & "{" & VbCrlf
|
||||
returnString = returnString & "'client_id':''," & VbCrlf
|
||||
returnString = returnString & " 'internal_no':''," & VbCrlf
|
||||
returnString = returnString & " 'external_no':''," & VbCrlf
|
||||
returnString = returnString & " 'client_ip':''" & VbCrlf
|
||||
returnString = returnString & "}" & VbCrlf
|
||||
returnString = "{"
|
||||
returnString = returnString & """clientId"":"""","
|
||||
returnString = returnString & """internalNo"":"""","
|
||||
returnString = returnString & """externalNo"":"""","
|
||||
returnString = returnString & """clientIp"":"""""
|
||||
returnString = returnString & "}"
|
||||
END IF
|
||||
|
||||
response.write returnString
|
||||
Response.ContentType = "application/json"
|
||||
Response.Charset = "utf-8"
|
||||
Response.write returnString
|
||||
'''''''''''''''''''''''''''New Contact<63><74><EFBFBD><EFBFBD> <20><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> IP<49><50> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Page'''''''''''''''''''''''''''
|
||||
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''20260428 <20><><EFBFBD>ؼ<EFBFBD>'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
|
||||
%>
|
||||
Reference in New Issue
Block a user