master
wangning 7 years ago
parent f730c8fb42
commit 39af9bac34

@ -102,7 +102,7 @@ public class RetailAppController {
@RequestMapping(value = "/notice/{noticeId}", method = RequestMethod.PUT)
public void updateNoticePartnerHasRead(@ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject device, @PathVariable String noticeId, @RequestBody JSONObject account_param) {
if (device.getString("account_id").equals(account_param.getString("account_id")){
if (!device.getString("account_id").equals(account_param.getString("account_id"))){
throw new ForbiddenException("You have no permission");
}
retailAppService.updateReadStatus(device, noticeId);

Loading…
Cancel
Save