llonebot-dist 7.11.1 → 7.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/llbot.js CHANGED
@@ -11564,7 +11564,7 @@ var webuiTokenUtil = new WebUITokenUtil(path.join(DATA_DIR, "webui_token.txt"));
11564
11564
  var logFileName = `llbot-${(/* @__PURE__ */ new Date()).toLocaleString("zh-CN")}.log`.replace(/\//g, "-").replace(/:/g, "-");
11565
11565
  //#endregion
11566
11566
  //#region src/version.ts
11567
- var version$2 = "7.11.1";
11567
+ var version$2 = "7.11.2";
11568
11568
  //#endregion
11569
11569
  //#region node_modules/isexe/windows.js
11570
11570
  var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -24802,7 +24802,10 @@ var OB11Http = class {
24802
24802
  else await next();
24803
24803
  }
24804
24804
  async handleRequest(c, next) {
24805
- const payload = c.req.method === "POST" ? await c.req.json() : c.req.query();
24805
+ let payload;
24806
+ if (c.req.method === "POST") if (c.req.header("Content-Type")?.includes("application/x-www-form-urlencoded")) payload = await c.req.parseBody();
24807
+ else payload = await c.req.json();
24808
+ else payload = c.req.query();
24806
24809
  this.ctx.logger.info("收到 HTTP 请求", c.req.url, payload);
24807
24810
  const actionName = c.req.param("endpoint");
24808
24811
  const action = this.config.actionMap.get(actionName);
@@ -44519,7 +44522,7 @@ discriminatedUnion("event_type", [
44519
44522
  data: GroupFileUploadEvent
44520
44523
  }).describe("群文件上传事件")
44521
44524
  ]).describe("事件");
44522
- var milkyVersion = "1.2.0-rc.5".split(".").slice(0, 2).join(".");
44525
+ var milkyVersion = "1.2.0".split(".").slice(0, 2).join(".");
44523
44526
  var CachedApiBase = object({ no_cache: ZBooleanWithDefault(false).describe("是否强制不使用缓存") });
44524
44527
  var GetLoginInfoOutput = object({
44525
44528
  uin: ZUin.describe("登录 QQ 号"),