Browse Source

bug修复请求不通

hl 1 năm trước cách đây
mục cha
commit
d9977549c9
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/web.js

+ 2 - 1
src/web.js

@@ -26,7 +26,7 @@ function init() {
             var md5 = req.headers.catilla
             //默认32位
             const md5Str = crypto.createHash('md5').update(k + timestamp).digest('hex');
-            // logger.info(JSON.stringify(md5Str))
+            logger.info(JSON.stringify(md5Str))
             if (md5 === md5Str) {
                 next();
             } else {
@@ -87,6 +87,7 @@ function init() {
     app.post('/execute', (req, res) => {
         // 获取发送过来的信息(请求体的数据)
         const param = req.body;
+        logger.info(`body:`,JSON.stringify(param))
         (async (param) => {
             console.log('请求体:', param);
             var executeType = param.executeType