瀏覽代碼

bug修复请求不通

hl 1 年之前
父節點
當前提交
685b4ff651
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/web.js

+ 1 - 1
src/web.js

@@ -18,7 +18,7 @@ function init() {
     const app = express();
     const port = 3000;
     // 中间件示例,用于处理JSON请求体
-    // app.use(express.json());
+    app.use(express.json());
     app.use((req, res, next) => {
         var k = "$8gBV!f&L@E"
         if ("timestamp" in req.headers) {