Explorar o código

bug修复请求不通

hl hai 1 ano
pai
achega
6964a6d4c4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {