JSD-8975 单点(PC+移动端区分)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.1 KiB

package com.fr.plugin.bsSSO.handler;
import com.fr.decision.fun.impl.BaseHttpHandler;
import com.fr.json.JSONObject;
import com.fr.plugin.bsSSO.bean.simple.account.PluginSimpleConfig;
import com.fr.plugin.bsSSO.utils.*;
import com.fr.third.springframework.web.bind.annotation.RequestMethod;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class PCLogin2 extends BaseHttpHandler {
public PCLogin2() {
}
@Override
public RequestMethod getMethod() {
return RequestMethod.GET;
}
@Override
public String getPath() {
return "/pclogin";
}
@Override
public boolean isPublic() {
return true;
}
@Override
public void handle(HttpServletRequest req, HttpServletResponse res){
String token = req.getParameter("token");
if(Utils.isNullStr(token)){
ResponseUtils.response(res,"token不能为空","error","","");
return ;
}
FRUtils.loginByToken(req,res,token,PluginSimpleConfig.getInstance().getIndex());
}
}