From 849d8e047b7bc96c47a126c5b2514dd5e4034476 Mon Sep 17 00:00:00 2001 From: lusipad Date: Sat, 6 Dec 2025 04:54:18 +0800 Subject: [PATCH] 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. --- src/services/claudeAccountService.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/services/claudeAccountService.js b/src/services/claudeAccountService.js index a7abe48e..77630364 100644 --- a/src/services/claudeAccountService.js +++ b/src/services/claudeAccountService.js @@ -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' }