新增最近联系人功能
This commit is contained in:
@@ -13,6 +13,7 @@ import timezone from 'dayjs/plugin/timezone';
|
||||
import roleService from '../service/role-service';
|
||||
import verifyUtils from '../utils/verify-utils';
|
||||
import r2Service from '../service/r2-service';
|
||||
import userService from '../service/user-service';
|
||||
|
||||
dayjs.extend(utc);
|
||||
dayjs.extend(timezone);
|
||||
@@ -58,7 +59,9 @@ export async function email(message, env, ctx) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (account && account.email !== env.admin) {
|
||||
const userRow = await userService.selectById({ env: env }, account.userId);
|
||||
|
||||
if (account && userRow.email !== env.admin) {
|
||||
|
||||
let { banEmail, banEmailType, availDomain } = await roleService.selectByUserId({ env: env }, account.userId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user