Refactor code structure for improved readability and maintainability

This commit is contained in:
2026-03-06 00:33:41 +08:00
parent 75a03bb3b0
commit 06141edc49
3 changed files with 1121 additions and 7 deletions

View File

@@ -60,10 +60,10 @@ const getLoginMethodByDomain = (): LoginMethod[] => {
methods = ['password', 'wechat-mp-ticket', 'wechat',]
break;
case 'localhost':
methods = ['password', 'web']
methods = ['web', 'password']
break
case 'cnb.run':
methods = ['password', 'web']
methods = ['web', 'password']
break;
default:
methods = ['password', 'web', 'phone', 'wechat', 'wechat-mp', 'wechat-mp-ticket']