perf:空指针调整
This commit is contained in:
@@ -84,7 +84,7 @@ public class TsCacheService {
|
||||
* 验证 图片验证码
|
||||
*/
|
||||
public void verifyCaptcha(String value) {
|
||||
String captchaKey = ServletUtil.getHeader(ServletKit.getRequest(), "captcha", "utf-8");
|
||||
String captchaKey = ServletKit.getHeader("captcha");
|
||||
String cache = get(captchaKey);
|
||||
if (StrUtil.isEmpty(cache) || !StrUtil.equals(cache, value)) {
|
||||
throw new ApiException("验证码不正确");
|
||||
|
||||
Reference in New Issue
Block a user