mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: AI写的代码一定要检查
This commit is contained in:
parent
3abfcc5d71
commit
74626e6676
1 changed files with 5 additions and 5 deletions
|
|
@ -16,22 +16,22 @@ import Version from './version.js'
|
|||
import fetch from 'node-fetch'
|
||||
let pdfjsLib
|
||||
try {
|
||||
pdfjsLib = require('pdfjs-dist')
|
||||
pdfjsLib = (await import('pdfjs-dist')).default
|
||||
} catch (err) {}
|
||||
|
||||
let mammoth
|
||||
try {
|
||||
mammoth = require('mammoth')
|
||||
mammoth = (await import('mammoth')).default
|
||||
} catch (err) {}
|
||||
|
||||
let XLSX
|
||||
try {
|
||||
XLSX = require('xlsx')
|
||||
XLSX = (await import('xlsx')).default
|
||||
} catch (err) {}
|
||||
|
||||
let PPTX
|
||||
try {
|
||||
PPTX = require('nodejs-pptx')
|
||||
PPTX = (await import('nodejs-pptx')).default
|
||||
} catch (err) {}
|
||||
|
||||
let _puppeteer
|
||||
|
|
@ -845,7 +845,7 @@ export function getUin (e) {
|
|||
else {
|
||||
Bot.uin.forEach((u) => {
|
||||
if (Bot[u].self_id) {
|
||||
return Bot[u].self_id
|
||||
return Bot[u].self_id
|
||||
}
|
||||
})
|
||||
return Bot.uin[Bot.uin.length - 1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue