|  | @@ -1,4 +1,5 @@
 | 
											
												
													
														|  | -using Admin.Core.Common.Attributes;
 |  | 
 | 
											
												
													
														|  | 
 |  | +using Admin.Core;
 | 
											
												
													
														|  | 
 |  | +using Admin.Core.Common.Attributes;
 | 
											
												
													
														|  |  using Admin.Core.Common.Cache;
 |  |  using Admin.Core.Common.Cache;
 | 
											
												
													
														|  |  using Newtonsoft.Json;
 |  |  using Newtonsoft.Json;
 | 
											
												
													
														|  |  using System;
 |  |  using System;
 | 
											
										
											
												
													
														|  | @@ -324,6 +325,10 @@ namespace Admin.Tools.Captcha
 | 
											
												
													
														|  |          /// <returns></returns>
 |  |          /// <returns></returns>
 | 
											
												
													
														|  |          public async Task<bool> CheckAsync(CaptchaInput input)
 |  |          public async Task<bool> CheckAsync(CaptchaInput input)
 | 
											
												
													
														|  |          {
 |  |          {
 | 
											
												
													
														|  | 
 |  | +            if (input == null || input.Data.IsNull())
 | 
											
												
													
														|  | 
 |  | +            {
 | 
											
												
													
														|  | 
 |  | +                return false;
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  |              var key = string.Format(CacheKey.VerifyCodeKey, input.Token);
 |  |              var key = string.Format(CacheKey.VerifyCodeKey, input.Token);
 | 
											
												
													
														|  |              if (await _cache.ExistsAsync(key))
 |  |              if (await _cache.ExistsAsync(key))
 | 
											
												
													
														|  |              {
 |  |              {
 |