|
@@ -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') };
|
|
|
// 访问量的添加
|