docs: translate isProAccount function comments to English

- Change function description from Chinese to English
- Translate inline comments (API priority, local config)
- Keep function logic unchanged

This completes the full English comment translation for all modified files.
This commit is contained in:
lusipad
2025-12-06 04:54:18 +08:00
parent 065aa6d35e
commit 849d8e047b

View File

@@ -19,17 +19,17 @@ const { formatDateWithTimezone, getISOStringWithTimezone } = require('../utils/d
const { isOpus45OrNewer } = require('../utils/modelHelper')
/**
* 判断账号是否为 Pro 账号(非 Max
* 兼容两种数据来源API 实时返回的 hasClaudePro 和本地配置的 accountType
* @param {Object} info - 订阅信息对象
* Check if account is Pro (not Max)
* Compatible with both API real-time data (hasClaudePro) and local config (accountType)
* @param {Object} info - Subscription info object
* @returns {boolean}
*/
function isProAccount(info) {
// API 返回的实时状态优先
// API real-time status takes priority
if (info.hasClaudePro === true && info.hasClaudeMax !== true) {
return true
}
// 本地配置的账户类型
// Local configured account type
return info.accountType === 'claude_pro'
}