修复提交博客评论未进行人机验证检验的bug

This commit is contained in:
2024-08-31 14:50:13 +08:00
parent 8190f5f55c
commit 61c7ec8d2e
2 changed files with 5 additions and 4 deletions

View File

@@ -1,15 +1,15 @@
import { API } from "../Plugs/API/API";
import ServerStdResponse from "../ServerStdResponse";
import MySQLConnection from '../Plugs/MySQLConnection'
import MountUserAgent from "../Plugs/Middleware/mountUserAgent";
import MountUserAgent from "../Plugs/Middleware/MountUserAgent";
import axios from "axios";
import MountIP from "../Plugs/Middleware/mountIP";
import MountIP from "../Plugs/Middleware/MountIP";
import CheckCaptchaPassed from "../Plugs/Middleware/CheckCaptchaPassed";
// 提交博客评论
class BlogComment extends API {
constructor() {
super('POST', '/blogComment', MountUserAgent, MountIP);
super('POST', '/blogComment', CheckCaptchaPassed, MountUserAgent, MountIP);
}
public async onRequset(data: any, res: any) {