mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
feat: OpenAI余额查询功能
This commit is contained in:
parent
3b807211c2
commit
636963af0e
2 changed files with 44 additions and 89 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue