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:
@@ -97,8 +97,8 @@ function handlePost(jsonData: any) {
|
|||||||
export function startExpress(port: number) {
|
export function startExpress(port: number) {
|
||||||
const app = express();
|
const app = express();
|
||||||
// 中间件,用于解析POST请求的请求体
|
// 中间件,用于解析POST请求的请求体
|
||||||
app.use(express.urlencoded({extended: true, limit: "50mb"}));
|
app.use(express.urlencoded({extended: true, limit: "500mb"}));
|
||||||
app.use(bodyParser({limit: '50mb'}))
|
app.use(bodyParser({limit: '500mb'}))
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
|
|
||||||
function parseToOnebot12(action: PostDataAction) {
|
function parseToOnebot12(action: PostDataAction) {
|
||||||
|
@@ -340,7 +340,7 @@ function onLoad() {
|
|||||||
}
|
}
|
||||||
btn.innerText = "获取群成员列表"
|
btn.innerText = "获取群成员列表"
|
||||||
console.log(qContextMenu)
|
console.log(qContextMenu)
|
||||||
qContextMenu.appendChild(btn)
|
// qContextMenu.appendChild(btn)
|
||||||
})
|
})
|
||||||
|
|
||||||
window.LLAPI.on("context-msg-menu", (event, target, msgIds) => {
|
window.LLAPI.on("context-msg-menu", (event, target, msgIds) => {
|
||||||
|
Reference in New Issue
Block a user