From afc44f204171c6361bb1aae9904037025d19b8d8 Mon Sep 17 00:00:00 2001 From: leedar360 Evan <50402727@qq.com> Date: Fri, 16 Oct 2015 00:05:39 +0800 Subject: [PATCH] for UE --- .../iyuesai/controller/site/SiteWechatController.java | 9 ++++++++- src/main/java/com/zmsport/iyuesai/mapper/gameApply.xml | 2 +- .../com/zmsport/iyuesai/service/GameApplyService.java | 2 +- src/main/webapp/site/pages/me.jsp | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/zmsport/iyuesai/controller/site/SiteWechatController.java b/src/main/java/com/zmsport/iyuesai/controller/site/SiteWechatController.java index 55a7985..273d639 100644 --- a/src/main/java/com/zmsport/iyuesai/controller/site/SiteWechatController.java +++ b/src/main/java/com/zmsport/iyuesai/controller/site/SiteWechatController.java @@ -176,9 +176,16 @@ public Object preOrder(@RequestParam String gameName, @RequestParam long gameId, //接受微信支付成功通知 //获取要访问的请求路径,作为微信登录的回调路径 StringBuffer requestUrl = request.getRequestURL(); + log.debug("preOrder requestUrl is ---> " + requestUrl); String domain = requestUrl.delete(requestUrl.length() - request.getRequestURI().length(), requestUrl.length()) + request.getServletContext().getContextPath(); + log.debug("preOrder domain is ---> " + domain); StringBuilder orderUrl = new StringBuilder(); - GameApply ga = gayService.getApplyByGameIdAndCreatorId(gameId, currentUser.getId()); + log.debug("preOrder orderUrl is ---> " + orderUrl); + log.debug("preOrder gameId is ---> " + gameId); + log.debug("preOrder currentUser is ---> " + currentUser.getId()); + + GameApply ga = (GameApply)gayService.getApplyByGameIdAndCreatorId(gameId, currentUser.getId()); + log.debug("preOrder GameApply teamid is ---> " + String.valueOf(ga.getTeamId())); orderUrl.append(domain).append("/site/wechat/createOrder/").append(gameId).append("/").append(ga.getTeamId()) .append("/").append(currentUser.getId()).append("/").append(fee).append("/").append(orderNo); log.info("微信支付成功后回调路径:{}",orderUrl); diff --git a/src/main/java/com/zmsport/iyuesai/mapper/gameApply.xml b/src/main/java/com/zmsport/iyuesai/mapper/gameApply.xml index 0fd4f2f..08723d1 100644 --- a/src/main/java/com/zmsport/iyuesai/mapper/gameApply.xml +++ b/src/main/java/com/zmsport/iyuesai/mapper/gameApply.xml @@ -28,7 +28,7 @@ diff --git a/src/main/java/com/zmsport/iyuesai/service/GameApplyService.java b/src/main/java/com/zmsport/iyuesai/service/GameApplyService.java index bfaf88e..a54f926 100644 --- a/src/main/java/com/zmsport/iyuesai/service/GameApplyService.java +++ b/src/main/java/com/zmsport/iyuesai/service/GameApplyService.java @@ -86,7 +86,7 @@ public interface GameApplyService { * @return */ public List getMyGames(long uid); - + /** * 删除用户相关信息 * @param creatorId diff --git a/src/main/webapp/site/pages/me.jsp b/src/main/webapp/site/pages/me.jsp index 63b6de1..4b0df7b 100644 --- a/src/main/webapp/site/pages/me.jsp +++ b/src/main/webapp/site/pages/me.jsp @@ -155,7 +155,7 @@ ">取消报名

-

&gameId=&fee=',,);void 0;">去支付

+

&gameId=&fee=','', '');void 0;">去支付

已报名