diff --git a/src/main/java/au/com/royalpay/payment/manage/apsKYC/web/RestApsKYCController.java b/src/main/java/au/com/royalpay/payment/manage/apsKYC/web/RestApsKYCController.java index fc837744b..27c702b5e 100644 --- a/src/main/java/au/com/royalpay/payment/manage/apsKYC/web/RestApsKYCController.java +++ b/src/main/java/au/com/royalpay/payment/manage/apsKYC/web/RestApsKYCController.java @@ -78,11 +78,11 @@ public class RestApsKYCController { * 禁用消息 * * @param manager 运营用户 - * @param id 消息数据 + * @param item 消息数据 */ @ManagerMapping(value = "/notice", method = RequestMethod.PUT, role = {ManagerRole.ADMIN}) - public void stopApsNotice(@ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager, @RequestBody String id) { - apsNoticeService.stopApsNotice(manager, id); + public void stopApsNotice(@ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager, @RequestBody JSONObject item) { + apsNoticeService.stopApsNotice(manager, item.getString("id")); } /** diff --git a/src/main/ui/static/apsKYC/aps_kyc.js b/src/main/ui/static/apsKYC/aps_kyc.js index 0ddae480c..8e2a621c2 100644 --- a/src/main/ui/static/apsKYC/aps_kyc.js +++ b/src/main/ui/static/apsKYC/aps_kyc.js @@ -27,8 +27,10 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) { } that.loadApsNotice(1); that.stopNotice = function (id) { - $http.put('/aps/kyc/notice', id).then(function () { - that.loadApsNotice(null); + var item = {}; + item.id = id; + $http.put('/aps/kyc/notice', item).then(function () { + that.loadApsNotice(); }); }; that.getNoticeClients = function (title, id, page) { diff --git a/src/main/ui/static/apsKYC/templates/cat_aps_notice.html b/src/main/ui/static/apsKYC/templates/cat_aps_notice.html index 88c9d5dfd..6e12fb1f0 100644 --- a/src/main/ui/static/apsKYC/templates/cat_aps_notice.html +++ b/src/main/ui/static/apsKYC/templates/cat_aps_notice.html @@ -7,21 +7,26 @@
-
- {{ noticeDetail.partnerCodes }} +
+
-
+
{{ noticeDetail.title }}
-
+