修改了举报
This commit is contained in:
parent
8ffeaeaec6
commit
5cf30a74e8
@ -93,6 +93,7 @@ public class ComplaintAppController extends DefaultBaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
complaintService.save(complaintVO);
|
complaintService.save(complaintVO);
|
||||||
|
ehCacheService.remove(EhCacheType.USER_VERIFICATION_CODE, complaintVO.getPhone() + "PhoneCode");
|
||||||
return new SuccessResult();
|
return new SuccessResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -153,7 +154,9 @@ public class ComplaintAppController extends DefaultBaseController {
|
|||||||
throw new SaveException("验证码输入错误");
|
throw new SaveException("验证码输入错误");
|
||||||
}
|
}
|
||||||
params.put("phone", phone);
|
params.put("phone", phone);
|
||||||
return complaintService.list(params);
|
List<ComplaintDTO> list = complaintService.list(params);
|
||||||
|
ehCacheService.remove(EhCacheType.USER_VERIFICATION_CODE, phone + "PhoneCode");
|
||||||
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "举报表分页列表", notes = "举报表分页列表接口")
|
@ApiOperation(value = "举报表分页列表", notes = "举报表分页列表接口")
|
||||||
@ -213,7 +216,7 @@ public class ComplaintAppController extends DefaultBaseController {
|
|||||||
if(!result) {
|
if(!result) {
|
||||||
throw new UpdateException("发送短信失败");
|
throw new UpdateException("发送短信失败");
|
||||||
}
|
}
|
||||||
|
ehCacheService.remove(EhCacheType.USER_VERIFICATION_CODE, phone + "PhoneCode");
|
||||||
ehCacheService.put(EhCacheType.USER_VERIFICATION_CODE,phone + "PhoneCode", code);
|
ehCacheService.put(EhCacheType.USER_VERIFICATION_CODE,phone + "PhoneCode", code);
|
||||||
return new SuccessResultData<>("success");
|
return new SuccessResultData<>("success");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user