|
@@ -76,8 +76,10 @@ public class WeChatController {
|
|
System.out.println("userAgent: "+userAgent);
|
|
System.out.println("userAgent: "+userAgent);
|
|
|
|
|
|
if(StringUtils.isBlank(code)){
|
|
if(StringUtils.isBlank(code)){
|
|
-// String temp = http+constant.call_back_domain+"/prod-api/service-iot"+request.getRequestURI();
|
|
|
|
- String temp = http+request.getServerName()+"/prod-api/service-iot"+request.getRequestURI();
|
|
|
|
|
|
+ String temp = http+constant.call_back_domain+"/prod-api/service-iot"+request.getRequestURI();
|
|
|
|
+ String temp1 = http+request.getServerName()+"/prod-api/service-iot"+request.getRequestURI();
|
|
|
|
+ String tmep2 = request.getRequestURL()+"";
|
|
|
|
+ System.out.println("temp temp "+temp1+tmep2);
|
|
String url = URLDecoder.decode(temp, "UTF-8");
|
|
String url = URLDecoder.decode(temp, "UTF-8");
|
|
String sendUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid="+constant.WE_CHAT_APP_ID+"&redirect_uri="+url+"&response_type=code&scope=snsapi_base&state=abc123#wechat_redirect";
|
|
String sendUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid="+constant.WE_CHAT_APP_ID+"&redirect_uri="+url+"&response_type=code&scope=snsapi_base&state=abc123#wechat_redirect";
|
|
try{
|
|
try{
|