feat: create by site

This commit is contained in:
MoreStrive
2024-07-15 21:02:22 +07:00
parent 043f97743c
commit 7565a37d60
9 changed files with 83 additions and 31 deletions
+16
View File
@@ -0,0 +1,16 @@
export const getSite = (dns : any) => {
const SITE = {
DEFAULT: 1,
KINHTEDOTHI: 'kinhtedothi',
}
let site = null;
switch (dns) {
case SITE.KINHTEDOTHI:
site = 2;
break;
default:
site = 1;
break;
}
return site;
}