报错处理, 日志去除

This commit is contained in:
tianfeng 2025-12-02 10:26:59 +08:00
parent ece64b3863
commit ad177c18fd
5 changed files with 4 additions and 26 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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("红包总金额必须大于等于红包个数");
}
}
/**
* 扣除用户金币
*/

View File

@ -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;

View File

@ -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>