Skip to content

Commit 17779ea

Browse files
authored
Update api_validate.js
修改打印
1 parent d1459ff commit 17779ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: utils/api_validate.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const validateBasicAuth = (request, reply, done) => {
1111
done();
1212
return
1313
}
14-
console.log(`[validateBasicAuth] 猫配置文件 ${cf_path} 进入鉴权`);
14+
console.log(`[validateBasicAuth] 猫配置文件 ${cf_path} 进入Basic登录鉴权`);
1515
}
1616
// console.log('进入了basic验证');
1717
const authHeader = request.headers.authorization;
@@ -46,9 +46,9 @@ export const validatePwd = async (request, reply) => {
4646
let cf_path = request.url.slice(8).split('?')[0];
4747
// console.log(cf_path);
4848
if (['index.js', 'index.js.md5', 'index.config.js', 'index.config.js.md5'].includes(cf_path)) {
49+
console.log(`[validatePwd] 猫配置文件 ${cf_path} 跳过接口密码鉴权`);
4950
return
5051
}
51-
console.log(`[validatePwd] 猫配置文件 ${cf_path} 进入鉴权`);
5252
}
5353

5454
// 从查询参数或请求体中获取 pwd

0 commit comments

Comments
 (0)