zoujiajian hace 11 meses
padre
commit
c36f3e3d2c

+ 1 - 1
netflix-service/src/main/java/com/cyksj/service/mange/goods/CmsYhShopCommonServiceImpl.java

@@ -199,7 +199,7 @@ public class CmsYhShopCommonServiceImpl implements CmsYhShopCommonService {
 
 		if (distributeMoneyApply.getVerifyStatus() == YhShopDistributeMoneyApply.Status.fail) {
 			String type = "shop";
-			String key = String.format(RedisService.key.APPLY_MONEY_DAY_LIMIT_KEY.getName(), DateTime.now().toDateStr(), type, distributeMoneyApply.getUserId());
+			String key = String.format(RedisService.key.APPLY_MONEY_DAY_LIMIT_KEY.getName(), distributeMoneyApply.getUserId().toString(), type, distributeMoneyApply.getUserId());
 			redisService.del(key);
 		}
 	}

+ 1 - 2
netflix-service/src/main/java/com/cyksj/service/mange/usermirror/impl/UserMirrorCommonServiceImpl.java

@@ -1,6 +1,5 @@
 package com.cyksj.service.mange.usermirror.impl;
 
-import cn.hutool.core.date.DateTime;
 import cn.hutool.core.util.StrUtil;
 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
 import com.cyksj.common.exception.BusinessRuntimeException;
@@ -77,7 +76,7 @@ public class UserMirrorCommonServiceImpl implements UserMirrorCommonService {
 
 		if (distributeMoneyApply.getVerifyStatus() == UserMirrorShopDistributeMoneyApply.Status.fail) {
 			String type = "mirrorShop";
-			String key = String.format(RedisService.key.APPLY_MONEY_DAY_LIMIT_KEY.getName(), DateTime.now().toDateStr(), type, distributeMoneyApply.getUserId());
+			String key = String.format(RedisService.key.APPLY_MONEY_DAY_LIMIT_KEY.getName(), distributeMoneyApply.getUserId().toString(), type, distributeMoneyApply.getUserId());
 			redisService.del(key);
 		}
 	}

+ 1 - 1
netflix-web/src/main/java/com/cyksj/web/controller/manage/distribute/DistributeController.java

@@ -533,7 +533,7 @@ public class DistributeController {
 		distributeMoneyApplyMapper.updateById(distributeMoneyApply);
 
 		if (distributeMoneyApply.getVerifyStatus() == DistributeMoneyApply.Status.fail) {
-			String key = String.format(RedisService.key.APPLY_MONEY_DAY_LIMIT_KEY.getName(), DateTime.now().toDateStr(), DistributeMoneyApply.MType.ds.name(), distributeMoneyApply.getUserId());
+			String key = String.format(RedisService.key.APPLY_MONEY_DAY_LIMIT_KEY.getName(), distributeMoneyApply.getUserId().toString(), DistributeMoneyApply.MType.ds.name(), distributeMoneyApply.getUserId());
 			redisService.del(key);
 		}
 		return GatewayResponse.SUCCESS.newBuilder().toResult("审核操作成功");