mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
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:
@@ -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'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user