报错处理, 日志去除
This commit is contained in:
parent
ece64b3863
commit
ad177c18fd
@ -84,8 +84,8 @@
|
||||
<!--必选项-->
|
||||
<endpoint>ap-singapore.cls.tencentcs.com</endpoint>
|
||||
<accessKeyId>AKIDSnx10rZK4d6NTRGtIYbPQFuLcp3CB0nR</accessKeyId>
|
||||
<accessKeySecret>c5oT2Y8nNnxzongUDlKkCVfjbLvKUXRC</accessKeySecret>
|
||||
<topicId>4d467d31-9165-42c6-b80a-2ea23ae7777e</topicId>
|
||||
<accessKeySecret>c5oT2Y8nNnxzongUDlKkCVfjbLvKUXAC</accessKeySecret>
|
||||
<topicId>4d467d31-9165-42c6-b80a-2ea23ae8888e</topicId>
|
||||
|
||||
<!-- 可选项 详见 '参数说明'-->
|
||||
<totalSizeInBytes>104857600</totalSizeInBytes>
|
||||
|
||||
@ -85,7 +85,7 @@
|
||||
<endpoint>ap-singapore.cls.tencentcs.com</endpoint>
|
||||
<accessKeyId>AKIDSnx10rZK4d6NTRGtIYbPQFuLcp3CB0nR</accessKeyId>
|
||||
<accessKeySecret>c5oT2Y8nNnxzongUDlKkCVfjbLvKUXRC</accessKeySecret>
|
||||
<topicId>4d467d31-9165-42c6-b80a-2ea23ae7777e</topicId>
|
||||
<topicId>4d467d31-9165-42c6-b80a-2ea23ae8888e</topicId>
|
||||
|
||||
<!-- 可选项 详见 '参数说明'-->
|
||||
<totalSizeInBytes>104857600</totalSizeInBytes>
|
||||
|
||||
@ -9,7 +9,6 @@ import com.red.circle.framework.core.asserts.ResponseAssert;
|
||||
import com.red.circle.other.app.convertor.RoomRedPacketAppConvertor;
|
||||
import com.red.circle.other.app.convertor.user.UserProfileAppConvertor;
|
||||
import com.red.circle.other.app.dto.clientobject.RoomRedPacketCO;
|
||||
import com.red.circle.other.app.dto.cmd.SendPlatformRoomRedPacketCmd;
|
||||
import com.red.circle.other.app.dto.cmd.SendRoomRedPacketCmd;
|
||||
import com.red.circle.other.app.util.OfficialNoticeUtils;
|
||||
import com.red.circle.other.domain.gateway.RoomRedPacketGateway;
|
||||
@ -214,26 +213,6 @@ public class SendRoomRedPacketCmdExe {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 参数校验(平台红包)
|
||||
*/
|
||||
private void validatePlatformParams(SendPlatformRoomRedPacketCmd cmd) {
|
||||
// 校验金额(平台红包至少100金币)
|
||||
if (cmd.getTotalAmount() < 100) {
|
||||
throw new RuntimeException("平台红包金额不能小于100金币");
|
||||
}
|
||||
|
||||
// 校验个数
|
||||
if (cmd.getTotalCount() < 1 || cmd.getTotalCount() > 100) {
|
||||
throw new RuntimeException("红包个数必须在1-100之间");
|
||||
}
|
||||
|
||||
// 校验平均金额(至少1金币/个)
|
||||
if (cmd.getTotalAmount() < cmd.getTotalCount()) {
|
||||
throw new RuntimeException("红包总金额必须大于等于红包个数");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 扣除用户金币
|
||||
*/
|
||||
|
||||
@ -10,7 +10,6 @@ import com.red.circle.other.app.dto.clientobject.RoomRedPacketDetailCO;
|
||||
import com.red.circle.other.app.dto.cmd.GrabRoomRedPacketCmd;
|
||||
import com.red.circle.other.app.dto.cmd.QueryRoomRedPacketDetailCmd;
|
||||
import com.red.circle.other.app.dto.cmd.QueryRoomRedPacketListCmd;
|
||||
import com.red.circle.other.app.dto.cmd.SendPlatformRoomRedPacketCmd;
|
||||
import com.red.circle.other.app.dto.cmd.SendRoomRedPacketCmd;
|
||||
import com.red.circle.other.app.util.DistributedLockUtil;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
@ -85,7 +85,7 @@
|
||||
<endpoint>ap-singapore.cls.tencentcs.com</endpoint>
|
||||
<accessKeyId>AKIDSnx10rZK4d6NTRGtIYbPQFuLcp3CB0nR</accessKeyId>
|
||||
<accessKeySecret>c5oT2Y8nNnxzongUDlKkCVfjbLvKUXRC</accessKeySecret>
|
||||
<topicId>4d467d31-9165-42c6-b80a-2ea23ae7777e</topicId>
|
||||
<topicId>4d467d31-9165-42c6-b80a-2ea23ae8888e</topicId>
|
||||
|
||||
<!-- 可选项 详见 '参数说明'-->
|
||||
<totalSizeInBytes>104857600</totalSizeInBytes>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user