新增规则触发人机验证和加载失败提示
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import app from './hono/webs';
|
||||
import { email } from './email/email';
|
||||
import userService from './service/user-service';
|
||||
import verifyRecord from './entity/verify-record';
|
||||
import verifyRecordService from './service/verify-record-service';
|
||||
export default {
|
||||
async fetch(req, env, ctx) {
|
||||
const url = new URL(req.url)
|
||||
@@ -16,6 +18,7 @@ export default {
|
||||
},
|
||||
email: email,
|
||||
async scheduled(c, env, ctx) {
|
||||
await verifyRecordService.clearRecord({env})
|
||||
await userService.resetDaySendCount({ env })
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user