|
|
@@ -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(){
|