Commit c393f4a5 authored by hezhen's avatar hezhen

Merge branch 'master_activity' into base-modify

parents eec83c9e c4f966ed
...@@ -42,21 +42,17 @@ public class WeixinController { ...@@ -42,21 +42,17 @@ public class WeixinController {
@Value("${wx.url}") @Value("${wx.url}")
private String url; private String url;
;
@Value("${wx.domainUrl}")
private String domainUrl;
@RequestMapping(value ="/app/unauth/wxLogin",method = RequestMethod.GET) @RequestMapping(value ="/app/unauth/wxLogin",method = RequestMethod.GET)
@IgnoreUserToken @IgnoreUserToken
public String wxLogin(@RequestParam(value = "callback",defaultValue = "")String redirec_url,HttpServletRequest request){ public String wxLogin(@RequestParam(value = "callback",defaultValue = "")String redirec_url){
if (StringUtils.isBlank(redirec_url)){ if (StringUtils.isBlank(redirec_url)){
redirec_url=""; redirec_url="";
} }
redirec_url=domainUrl+"/"+redirec_url;
log.info("-----微信wxLogin---redirec_url=="+redirec_url); log.info("-----微信wxLogin---redirec_url=="+redirec_url);
try { try {
String encrypt_curr_url = Base64.encode(redirec_url.getBytes("utf-8")); String encrypt_curr_url = Base64.encode(redirec_url.getBytes("utf-8"));
......
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