Эх сурвалжийг харах

feat: 查询学校自动解析code

zhangjie 1 сар өмнө
parent
commit
1734551213
1 өөрчлөгдсөн 0 нэмэгдсэн , 3 устгасан
  1. 0 3
      src/constants/app.ts

+ 0 - 3
src/constants/app.ts

@@ -27,11 +27,8 @@ export function getOrgCode() {
 export function getOrgCodeFromDomain(domain: string) {
   let code = '';
   if (!domain) return '';
-  console.log('domain', domain);
-
   const hostname = domain.split('://')[1];
   if (!hostname) return '';
-
   const ipFormat = new RegExp(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/);
   if (ipFormat.test(hostname) || hostname.includes('localhost')) return '';
   code = hostname.split('.')[0];