lrf402788946 4 years ago
parent
commit
33e8a1f745
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/service/intercept.js

+ 2 - 1
app/service/intercept.js

@@ -55,9 +55,10 @@ class InterceptService extends CrudService {
       if (arr.length <= 2) throw new BusinessError();
       const _tenant = arr[1];
       let project = await this.redis.get('project');
-      console.log(project);
       if (!project) throw new BusinessError(ErrorCode.SERVICE_FAULT, '未设置中间层项目参数');
       project = JSON.parse(project);
+      console.log(project);
+      console.log(_tenant);
       if (!project.includes(_tenant)) throw new BusinessError();
       const obj = { ip: clientIp, create_time: moment().format('YYYY-MM-DD HH:mm:ss') };
       // 访问量的添加