|
@ -336,8 +336,6 @@ public class WlyyLoginEndpoint extends AbstractEndpoint {
|
|
|
//图形验证码验证
|
|
|
String key = parameters.get("key");
|
|
|
String text = parameters.get("text");
|
|
|
System.out.println("key==>" + key);
|
|
|
System.out.println("text==>" + text);
|
|
|
if (org.apache.commons.lang3.StringUtils.isNotBlank(key) && org.apache.commons.lang3.StringUtils.isNotBlank(text)) {
|
|
|
if (!verifyCaptcha(key, text)) {
|
|
|
System.out.println("");
|
|
@ -352,13 +350,9 @@ public class WlyyLoginEndpoint extends AbstractEndpoint {
|
|
|
logger.info(username);
|
|
|
|
|
|
if (StringUtils.isEmpty(username) && StringUtils.isEmpty(flag)) {
|
|
|
System.out.println("flag==>" + flag);
|
|
|
System.out.println("username==>" + username);
|
|
|
System.out.println("flag或者username为空");
|
|
|
throw new InvalidRequestException("username");
|
|
|
}
|
|
|
String client_id = parameters.get("client_id");
|
|
|
System.out.println("client_id==>" + client_id);
|
|
|
if (StringUtils.isEmpty(client_id)) {
|
|
|
throw new InvalidRequestException("client_id");
|
|
|
}
|