우편번호호

This commit is contained in:
2025-10-27 17:53:55 +09:00
parent 6c2223a021
commit 0fd1fa74ba
4 changed files with 13 additions and 24 deletions
-8
View File
@@ -101,19 +101,11 @@ async function handler(
[AUTH_USER_ID]: userId,
...responseData, // 2FA 관련 추가 데이터 포함
});
const hostname = window.location.hostname;
let domain = hostname === "localhost" || hostname === "127.0.0.1" ? undefined : hostname;
// 운영 환경에서는 서브도메인을 포함한 최상위 도메인 사용
if (hostname.includes("hasuon.or.kr")) {
domain = ".hasuon.or.kr";
}
if (refreshToken) {
cookieStore.set(REFRESH_TOKEN, refreshToken, {
httpOnly: true,
sameSite: "lax",
domain: domain,
path: "/",
});
}
+1 -8
View File
@@ -61,19 +61,12 @@ async function handler(
});
const hostname = window.location.hostname;
let domain = hostname === "localhost" || hostname === "127.0.0.1" ? undefined : hostname;
// 운영 환경에서는 서브도메인을 포함한 최상위 도메인 사용
if (hostname.includes("hasuon.or.kr")) {
domain = ".hasuon.or.kr";
}
if (refreshToken) {
cookieStore.set(REFRESH_TOKEN, refreshToken, {
httpOnly: true,
sameSite: "lax",
domain: domain,
// domain: domain,
path: "/",
});
}
@@ -10,6 +10,8 @@ export interface ZipSearchParams extends PageableParams {
roadNm?: string; // 도로명
stdgNm?: string; // 법정동명
dongNm?: string; // 행정동명
bldgNoMno?: number | null; // 빌딩본번
bldgNoSno?: number | null; // 빌딩딩부번
lotnoMno?: number | null; // 지번본번
lotnoSno?: number | null; // 지번부번
}
@@ -21,6 +23,8 @@ export interface Zip {
sggNm: string;
emdNm: string;
roadNm: string;
bldgNoMno: number;
bldgNoSno: number;
lotnoMno: number;
lotnoSno: number;
lotno: string;
@@ -39,8 +39,8 @@ function ZipSearchDialog({ onSelectAddress }: ZipSearchDialogProps) {
});
const [searchQuery, setSearchQuery] = useState<ZipSearchParams>({
roadNm: "",
lotnoMno: null,
lotnoSno: null,
bldgNoMno: null,
bldgNoSno: null,
});
const hasFetchedOnce = useRef(false);
@@ -156,17 +156,17 @@ function ZipSearchDialog({ onSelectAddress }: ZipSearchDialogProps) {
</div>
<div className="flex flex-col">
<Label className="mb-1 text-base">지번본번</Label>
<Label className="mb-1 text-base">건물본번</Label>
<Input
type="number"
value={searchQuery.lotnoMno ?? ""}
value={searchQuery.bldgNoMno ?? ""}
onChange={(e) => {
const value = e.target.value
? parseInt(e.target.value)
: null;
setSearchQuery({
...searchQuery,
lotnoMno: value,
bldgNoMno: value,
});
}}
placeholder="예: 123"
@@ -175,17 +175,17 @@ function ZipSearchDialog({ onSelectAddress }: ZipSearchDialogProps) {
</div>
<div className="flex flex-col">
<Label className="mb-1 text-base">지번부번</Label>
<Label className="mb-1 text-base">건물부번</Label>
<Input
type="number"
value={searchQuery.lotnoSno ?? ""}
value={searchQuery.bldgNoSno ?? ""}
onChange={(e) => {
const value = e.target.value
? parseInt(e.target.value)
: null;
setSearchQuery({
...searchQuery,
lotnoSno: value,
bldgNoSno: value,
});
}}
placeholder="예: 45"