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 | 325 | @RequestMapping(value = "GetWxSign",method = RequestMethod.GET) |
| 326 | 326 | @ApiOperation(value = "获取微信分享签名") |
| 327 | 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 | 334 | BaseDto<WxSign> result=new BaseDto<>(); |
| 329 | 335 | // String r=Get("http://114.55.30.100:1111/api/UserRegisterApp/GetWxShareSign","url="+url); |
| 330 | 336 | // JSONObject jsonObject= JSONObject.parseObject(r); | ... | ... |