shawenguan 1 年之前
父节点
当前提交
884fd113f8
共有 1 个文件被更改,包括 11 次插入11 次删除
  1. 11 11
      Scripts/dingdong/dingdongHelper.js

+ 11 - 11
Scripts/dingdong/dingdongHelper.js

@@ -53,23 +53,23 @@ async function Main() {
 function checkHandleRequest(){
     const request = magicJS.request;
     magicJS.logger.info(request.url);
-    magicJS.logger.info(`请求url=${url}#${request.method}`);
+    magicJS.logger.info(`请求url=${request.url}#${request.method}`);
     if(request.method != 'OPTIONS'){
         return;
     }
     const url = request.url;
     const path = request.path;
     magicJS.logger.info(`path=${path}`);
-    // if (path.match(/\/point\/home/)) {
-    //     handlePointHomeData();
-    // } else if (path.match(/\/user\/info/)) {
-    //     handlePointHomeData();
-    // } else {
-    //     // switch (path) {
-    //     //     default:
-    //     //         break;
-    //     // }
-    // }
+    if (path.match(/\/point\/home/)) {
+        // handlePointHomeData();
+    } else if (path.match(/\/user\/info/)) {
+        // handlePointHomeData();
+    } else {
+        // switch (path) {
+        //     default:
+        //         break;
+        // }
+    }
 }
 
 // function handlePointHomeData(){