mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
body size up to 500mb
This commit is contained in:
parent
bffa2d9a31
commit
5f9679dfbf
@ -97,8 +97,8 @@ function handlePost(jsonData: any) {
|
||||
export function startExpress(port: number) {
|
||||
const app = express();
|
||||
// 中间件,用于解析POST请求的请求体
|
||||
app.use(express.urlencoded({extended: true, limit: "50mb"}));
|
||||
app.use(bodyParser({limit: '50mb'}))
|
||||
app.use(express.urlencoded({extended: true, limit: "500mb"}));
|
||||
app.use(bodyParser({limit: '500mb'}))
|
||||
app.use(express.json());
|
||||
|
||||
function parseToOnebot12(action: PostDataAction) {
|
||||
|
@ -340,7 +340,7 @@ function onLoad() {
|
||||
}
|
||||
btn.innerText = "获取群成员列表"
|
||||
console.log(qContextMenu)
|
||||
qContextMenu.appendChild(btn)
|
||||
// qContextMenu.appendChild(btn)
|
||||
})
|
||||
|
||||
window.LLAPI.on("context-msg-menu", (event, target, msgIds) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user