Skip to content

Commit

Permalink
supports 200000000
Browse files Browse the repository at this point in the history
  • Loading branch information
AlPha5130 committed Sep 13, 2021
1 parent 42f2526 commit 188e4b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/module/_getServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
export function _getServer(uid: number): string {
switch (String(uid)[0]) {
case '1':
case '2':
return 'cn_gf01'
case '5':
return 'cn_qd01'
Expand Down
2 changes: 1 addition & 1 deletion src/util/isValidUid.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export function isValidCnUid(uid: any): boolean {
const uidNum: number = parseInt(uid)
return isValidUid(uidNum) && ['1', '5'].includes(uidNum.toString()[0])
return isValidUid(uidNum) && ['1', '2', '5'].includes(uidNum.toString()[0])
}

export function isValidOsUid(uid: any): boolean {
Expand Down

0 comments on commit 188e4b1

Please sign in to comment.