修改登录通知消息

This commit is contained in:
hanhh
2021-09-20 23:56:20 +08:00
parent 33f5a06d32
commit 95322b42c0
+2 -2
View File
@@ -104,7 +104,7 @@ export default class AuthService {
'登陆通知', '登陆通知',
`你于${new Date( `你于${new Date(
timestamp, timestamp,
).toLocaleString()}${address} 登陆成功,ip地址 ${ip}"`, ).toLocaleString()}${address} 登陆成功,ip地址 ${ip}`,
); );
await this.getLoginLog(); await this.getLoginLog();
await this.insertDb({ await this.insertDb({
@@ -126,7 +126,7 @@ export default class AuthService {
'登陆通知', '登陆通知',
`你于${new Date( `你于${new Date(
timestamp, timestamp,
).toLocaleString()}${address} 登陆失败,ip地址 ${ip}"`, ).toLocaleString()}${address} 登陆失败,ip地址 ${ip}`,
); );
await this.getLoginLog(); await this.getLoginLog();
await this.insertDb({ await this.insertDb({