| | |
| | | import org.springframework.core.io.buffer.DataBufferUtils;
|
| | | import org.springframework.http.server.reactive.ServerHttpRequest;
|
| | | import org.springframework.stereotype.Component;
|
| | | import com.alibaba.fastjson.JSONObject;
|
| | | import com.alibaba.fastjson2.JSON;
|
| | | import com.alibaba.fastjson2.JSONObject;
|
| | | import com.ruoyi.common.core.utils.ServletUtils;
|
| | | import com.ruoyi.common.core.utils.StringUtils;
|
| | | import com.ruoyi.gateway.config.properties.CaptchaProperties;
|
| | |
| | | try
|
| | | {
|
| | | String rspStr = resolveBodyFromRequest(request);
|
| | | JSONObject obj = JSONObject.parseObject(rspStr);
|
| | | JSONObject obj = JSON.parseObject(rspStr);
|
| | | validateCodeService.checkCaptcha(obj.getString(CODE), obj.getString(UUID));
|
| | | }
|
| | | catch (Exception e)
|