提交 e6342e98 编写于 作者: Chongwen.jiang's avatar Chongwen.jiang

一键登录token为空时也直接返回错误提示,不去调用闪验API

上级 07a787e1
流水线 #22786 已失败 于阶段
in 0 second
......@@ -10,6 +10,7 @@ import com.pica.cloud.account.account.server.util.HttpUtil;
import com.pica.cloud.account.account.server.util.MD5;
import com.pica.cloud.account.account.server.util.RSAUtil;
import com.pica.cloud.account.account.server.util.SignUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -61,7 +62,7 @@ public class OneClickProcessor {
private LogLoginOnekeyMapper logLoginOnekeyMapper;
public QueryMobileEntity tokenExchangeMobile(String token, Integer type) {
if (type == null) {
if (type == null || StringUtils.isEmpty(token)) {
return null;
}
String appId;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册