|
|
@@ -24,6 +24,8 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.Map;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
|
|
/**
|
|
|
@@ -110,10 +112,10 @@ public class CaptchaController {
|
|
|
code = captcha.getCode();
|
|
|
}
|
|
|
redisCache.setCacheObject(verifyKey, code, Constants.CAPTCHA_EXPIRATION, TimeUnit.MINUTES);
|
|
|
- AjaxResult ajax = AjaxResult.success();
|
|
|
- ajax.put("uuid", uuid);
|
|
|
- ajax.put("img", captcha.getImageBase64());
|
|
|
- return ajax;
|
|
|
+ Map map = new HashMap<String,String>();
|
|
|
+ map.put("uuid", uuid);
|
|
|
+ map.put("img", captcha.getImageBase64());
|
|
|
+ return AjaxResult.success(map);
|
|
|
}
|
|
|
|
|
|
private String getCodeResult(String capStr) {
|