feat: OpenAI余额查询功能

This commit is contained in:
ikechan8370 2023-07-04 16:30:31 +08:00
parent 3b807211c2
commit 636963af0e
2 changed files with 44 additions and 89 deletions

View file

@ -262,6 +262,14 @@ export function formatDate (date) {
const formattedDate = `${year}${month}${day}${hour}:${minute}`
return formattedDate
}
export function formatDate2 (date) {
const year = date.getFullYear()
const month = String(date.getMonth() + 1).padStart(2, '0')
const day = String(date.getDate()).padStart(2, '0')
return `${year}-${month}-${day}`
}
export async function getMasterQQ () {
return (await import('../../../lib/config/config.js')).default.masterQQ
}