Commit 27417c5d by 陶光胜

加日志

parent f5003e37
......@@ -17,6 +17,9 @@ import com.gic.haoban.manage.web.errCode.HaoBanErrCode;
import com.gic.haoban.manage.web.vo.LoginVO;
import com.gic.wechat.api.service.qywx.QywxCorpApiService;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
@RestController
public class LoginController extends WebBaseController{
......@@ -49,10 +52,10 @@ public class LoginController extends WebBaseController{
}
@RequestMapping("get-login-qrcode")
public HaobanResponse getLoginQrcode(){
public HaobanResponse getLoginQrcode() throws UnsupportedEncodingException {
String corpid = config.getCorpid();
String redirectUri = config.getHost() + "login";
String url = "https://open.work.weixin.qq.com/wwopen/sso/3rd_qrConnect?appid="+corpid+"&redirectUri="+redirectUri+"&state=web_login@gyoss9&usertype=admin";
String url = "https://open.work.weixin.qq.com/wwopen/sso/3rd_qrConnect?appid="+corpid+"&redirectUri="+ URLEncoder.encode(redirectUri, "UTF-8")+"&state=web_login@gyoss9&usertype=admin";
//String url = qywxCorpApiService.getGrantAuthorizationUrl(siteId, redirectUri);
return resultResponse(HaoBanErrCode.ERR_1,url);
......
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