From 470c234209b2e626ed99f8ea5c6958ddd493c29d Mon Sep 17 00:00:00 2001 From: kira <164851225@qq.com> Date: Fri, 13 Jul 2018 19:29:28 +0800 Subject: [PATCH] update --- .../payment/manage/customers/web/EncourageMoneyController.java | 2 +- src/main/ui/static/templates/payment/success.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/customers/web/EncourageMoneyController.java b/src/main/java/au/com/royalpay/payment/manage/customers/web/EncourageMoneyController.java index e7547971c..a11409f06 100644 --- a/src/main/java/au/com/royalpay/payment/manage/customers/web/EncourageMoneyController.java +++ b/src/main/java/au/com/royalpay/payment/manage/customers/web/EncourageMoneyController.java @@ -27,7 +27,7 @@ public class EncourageMoneyController { @Resource private EncourageService encourageService; - @RequestMapping(value = "/orders/{orderId}", method = RequestMethod.GET) + @RequestMapping(value = "/orders/{orderId}", method = RequestMethod.PUT) public JSONObject takeEncourageMoney(@PathVariable String orderId,@ModelAttribute(CommonConsts.WECHATINFO) JSONObject wxUser,@ModelAttribute(CommonConsts.ALIUSER) JSONObject aliuser) { String user_id = ""; if(wxUser==null){ diff --git a/src/main/ui/static/templates/payment/success.js b/src/main/ui/static/templates/payment/success.js index 96bf515c6..8bb8587a3 100644 --- a/src/main/ui/static/templates/payment/success.js +++ b/src/main/ui/static/templates/payment/success.js @@ -31,7 +31,6 @@ $(function () { }); function loadEncourage() { - $.ajax({ url: '/act/encourage_money/orders/' + window.order_id, method: 'PUT',