[APP] 국가 체크(팝업-연동전)
This commit is contained in:
@@ -122,4 +122,23 @@ export const getSystemSettings = (
|
||||
onSuccess(res);
|
||||
onComplete(res);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
export function checkValidCountry(ricCode, country) {
|
||||
if (ricCode === "aic") {
|
||||
if (country === "US") return true;
|
||||
else return false;
|
||||
} else if (ricCode === "eic") {
|
||||
if (country === "GB" || country === "DE") return true;
|
||||
else return false;
|
||||
} else if (ricCode === "ruc") {
|
||||
if (country === "RU") return true;
|
||||
else return false;
|
||||
} else {
|
||||
if (country === "US") {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user