|
@@ -267,7 +267,7 @@ namespace Hotline.Api.Controllers
|
|
|
[HttpGet("verify-white-list/{phone}")]
|
|
|
public async Task<bool> VerifyWhiteList(string phone)
|
|
|
{
|
|
|
- var isEx = await _db.Queryable<XingtangWhitePhone>().Where(p => p.Phone == phone && p.ValidDateTime <= DateTime.Now).AnyAsync();
|
|
|
+ var isEx = await _db.Queryable<XingtangWhitePhone>().Where(p => p.Phone == phone && p.ValidDateTime >= DateTime.Now).AnyAsync();
|
|
|
if (isEx)
|
|
|
return true;
|
|
|
else
|