소스 검색

修改测试

shawenguan 1 년 전
부모
커밋
a5ede224f8
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      Scripts/dingdong/dingdongHelper.js

+ 3 - 1
Scripts/dingdong/dingdongHelper.js

@@ -35,7 +35,7 @@ async function Main() {
     magicJS.logger.info(!!$request);
     magicJS.logger.info(!!$response);
     magicJS.logger.info(`isRequest=${magicJS.isRequest}`);
-    if (magicJS.isRequest) {
+    if (typeof $request != "undefined") {
         handleRequest();
     } else {
         const allSessions = magicJS.data.allSessionNames(dingDongCookieKey);
@@ -65,6 +65,8 @@ function handleRequest(){
     const request = magicJS.request;
     const url = request.url;
     const path = request.path;
+    magicJS.logger.info(`请求url=${url}#${$request.method}`);
+    magicJS.logger.info(`path=8${path}`);
     // if(getCookieRegex.test(request.url)){
     //     const cookie = request.headers.Cookie;
     //     const body = request.url.split('?')[1];