MCPcopy Create free account
hub / github.com/Rfym21/Qwen2API / getTodayKey

Method getTodayKey

src/utils/account.js:347–349  ·  view source on GitHub ↗

* Public helper: today's YYYY-MM-DD key in Node process local TZ. * Paired with the _getYesterdayKey used inside _resetDailyCounters. * The /statsHistory route must use this rather than new Date() in the * browser — otherwise differing browser/container TZs can shift month * boun

()

Source from the content-addressed store, hash-verified

345 * - DATA_SAVE_MODE=none: saveAllAccounts returns false and history is not
346 * persisted. Set DATA_SAVE_MODE=file or redis to enable the feature.
347 * @private
348 */
349 async _resetDailyCounters() {
350 // CLI 请求计数(旧逻辑)
351 const cliAccounts = this.accountTokens.filter(account => account.cli_info)
352 cliAccounts.forEach(account => {

Callers 1

accounts.jsFile · 0.80

Calls 1

_getTodayKeyFunction · 0.85

Tested by

no test coverage detected