- 登录先用人工设置的默认接口(当前 iframe):等码超时/发信失败后, 同一账号自动切到另一条通道(iframe <-> wgapi)再试一轮,每个账号 最多切一次;DOUYU_LOGIN_EMAIL_FALLBACK_API=off 可关闭 - 步骤 4/5 日志写明当前取码通道,切渠道时单独告警,页面可直接看到 - 配额/账号上限挡下的账号不再「凭空消失」:落一行 skipped 任务, 日志写明未执行原因;界面新增「已跳过」状态、筛选与重试 - 停止、服务重启收敛、执行线程异常这几条路径也补单账号日志 - 修复刷新线程与收尾写库的覆盖竞态(旧快照会吃掉最后的失败原因) - 补测试:渠道回退、跳过行与日志、日志真正落库
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Remove tseslint.configs.recommended and replace with this
tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
tseslint.configs.stylisticTypeChecked,
// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])