|
@@ -12,6 +12,7 @@ import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
import java.util.Map;
|
|
@@ -36,7 +37,7 @@ public class OauthController {
|
|
|
logger.info("key", "oauth/douyin/callback", "code", code, "state", state, "token", token);
|
|
|
// todo 用户数据入库
|
|
|
douyinAccountService.upsert(code);
|
|
|
- return "redirect:https://cxzx.smcic.net/mediaAll/index.html#/main_home/convergence";
|
|
|
+ return "redirect:/oauth/close";
|
|
|
}
|
|
|
|
|
|
@Autowired
|
|
@@ -71,7 +72,7 @@ public class OauthController {
|
|
|
logger.info("key", "oauth/weibo/callback", "code", networkGroupId);
|
|
|
// todo 用户数据入库
|
|
|
weiboAccountService.upsert(networkGroupId);
|
|
|
- return "redirect:https://cxzx.smcic.net/mediaAll/index.html#/main_home/convergence";
|
|
|
+ return "redirect:/oauth/close";
|
|
|
}
|
|
|
|
|
|
@Autowired
|
|
@@ -108,4 +109,11 @@ public class OauthController {
|
|
|
wxRestService.apiQueryAuth(authCode);
|
|
|
return "redirect:https://open.sxtvs.net/login.html?platform=weixin";
|
|
|
}
|
|
|
+
|
|
|
+ @RequestMapping("close")
|
|
|
+ public ModelAndView winClose(){
|
|
|
+ ModelAndView modelAndView = new ModelAndView();
|
|
|
+ modelAndView.setViewName("close");
|
|
|
+ return modelAndView;
|
|
|
+ }
|
|
|
}
|