定时发送短信
This commit is contained in:
@@ -110,6 +110,13 @@ namespace Hncore.Pass.Vpn.Service
|
||||
return this.m_DbContext.SqlQuery<ProductAccountEntity>(sql);
|
||||
}
|
||||
|
||||
//主要是用来定时执行的
|
||||
public async Task<List<ProductAccountEntity>> GetExpireingAccountsTime()
|
||||
{
|
||||
var sql = $"select * from product_account where DATEDIFF(EndTime,now())=-1 OR DATEDIFF(EndTime,now())=0 OR DATEDIFF(EndTime,now())=1 GROUP BY UserId";
|
||||
return this.m_DbContext.SqlQuery<ProductAccountEntity>(sql);
|
||||
}
|
||||
|
||||
public async Task<ApiResult> UpdateAccountPwd(UpdateAccountPwdRequest request)
|
||||
{
|
||||
var entity = await this.GetById(request.Id);
|
||||
|
||||
Reference in New Issue
Block a user