Commit 40f54b0a by 魏文甫

Merge branch 'wei_master' into '105'

update

See merge request !52
2 parents d5d1c9a7 94268246
......@@ -178,23 +178,12 @@ public class WeixinIndexController extends BaseController{
}
}
public static void main(String[] args) {
System.out.println(URLDecoder.decode("http%3A%2F%2Fkzy-wx-1.jimijiayuan.cn%2Fhome"));
// String urlTicket = "http://kzy-wx.jimijiayuan.cn/home?shareFlag=true";
// urlTicket = urlTicket.substring(0,urlTicket.indexOf("?"));
// System.out.println(urlTicket);
}
@ResponseBody
@RequestMapping(value = "/jsApiSignature", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json")
public Map<String,Object> jsApiSignature(HttpServletRequest request) throws Exception{
try{
String urlTicket = request.getParameter("url");
if(StringUtils.hasText(urlTicket)){
// urlTicket = URLDecoder.decode(urlTicket);
System.out.println("传参:\t"+urlTicket);
Map<String, Object> signature = jsApiSignature(urlTicket);
if(signature!=null) {
return returnSuccess(signature);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!