用户红包金额限制为100-50000区间
This commit is contained in:
parent
76f357497d
commit
5dbb10b0ae
@ -82,7 +82,7 @@ public class SendUserRedPacketCmdExe {
|
|||||||
* 参数校验
|
* 参数校验
|
||||||
*/
|
*/
|
||||||
private void validateParams(SendUserRedPacketCmd cmd) {
|
private void validateParams(SendUserRedPacketCmd cmd) {
|
||||||
if (cmd.getTotalAmount() < 500 || cmd.getTotalAmount() > 250000) {
|
if (cmd.getTotalAmount() < 100 || cmd.getTotalAmount() > 50000) {
|
||||||
throw new RuntimeException(OtherErrorCode.RED_PACKET_AMOUNT_ERROR.getMessage());
|
throw new RuntimeException(OtherErrorCode.RED_PACKET_AMOUNT_ERROR.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user