pull/1121/head
梁宇奇 2025-09-05 18:40:27 +08:00
parent 73694a9560
commit 1e77009e4c
1 changed files with 2 additions and 2 deletions

View File

@ -646,8 +646,8 @@ public class StoreProductServiceImpl implements IStoreProductService {
Assert.notNull(picPackReqDTO.getUserId());
String reqCacheKey = CacheConstants.PIC_PACK_USER_REQ_COUNT_CACHE + picPackReqDTO.getUserId();
int reqCount = Optional.ofNullable((Integer) redisCache.getCacheObject(reqCacheKey)).orElse(0);
//3次请求后需要输入验证码
if (reqCount > 2) {
//5次请求后需要输入验证码
if (reqCount > 4) {
//需验证验证码
if (StrUtil.isEmpty(picPackReqDTO.getTicket()) || StrUtil.isEmpty(picPackReqDTO.getRandstr())) {
//未传验证码