Commit c2563108 authored by xuepeng.chang's avatar xuepeng.chang

fix-clientType修改

parent 56516976
......@@ -24,6 +24,7 @@ import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import java.util.Objects;
import java.util.UUID;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
......@@ -133,7 +134,9 @@ public class SMSDirectJiLoginStrategy implements LoginStrategy {
public BaseLoginParam checkParam(LoginReq loginReq) {
log.info("[SMSDirectJiLoginStrategy][checkParam]请求参数,loginReq:{}", JSON.toJSONString(loginReq));
SMSDirectLoginParam param = loginReq.getData().toJavaObject(SMSDirectLoginParam.class);
param.setClientType(loginReq.getClientType());
if(Objects.isNull(param.getClientType())){
param.setClientType(loginReq.getClientType());
}
log.info("[SMSDirectJiLoginStrategy][checkParam]请求参数,param:{}", JSON.toJSONString(param));
validator.validate(param);
return param;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment