|
|
@@ -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];
|