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