Commit e2b6d288563b89b63f83df4507529308628cc067
1 parent
4582f838
Exists in
master
1
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
src/main/java/com/sincere/wechatbusiness/controller/ChannelController.java
@@ -325,6 +325,12 @@ public class ChannelController { | @@ -325,6 +325,12 @@ public class ChannelController { | ||
325 | @RequestMapping(value = "GetWxSign",method = RequestMethod.GET) | 325 | @RequestMapping(value = "GetWxSign",method = RequestMethod.GET) |
326 | @ApiOperation(value = "获取微信分享签名") | 326 | @ApiOperation(value = "获取微信分享签名") |
327 | public BaseDto<WxSign> GetWxSign(String url){ | 327 | public BaseDto<WxSign> GetWxSign(String url){ |
328 | + try { | ||
329 | + url = java.net.URLDecoder.decode(url, "UTF-8"); | ||
330 | + } catch (UnsupportedEncodingException e) { | ||
331 | + e.printStackTrace(); | ||
332 | + } | ||
333 | + url=url.replaceAll("\\+", "%2B"); | ||
328 | BaseDto<WxSign> result=new BaseDto<>(); | 334 | BaseDto<WxSign> result=new BaseDto<>(); |
329 | // String r=Get("http://114.55.30.100:1111/api/UserRegisterApp/GetWxShareSign","url="+url); | 335 | // String r=Get("http://114.55.30.100:1111/api/UserRegisterApp/GetWxShareSign","url="+url); |
330 | // JSONObject jsonObject= JSONObject.parseObject(r); | 336 | // JSONObject jsonObject= JSONObject.parseObject(r); |