body size up to 500mb

This commit is contained in:
linyuchen 2023-12-06 17:42:57 +08:00
parent bffa2d9a31
commit 5f9679dfbf
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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) => {