记得上下班打卡 | git大法好,push需谨慎

Commit df88a73d authored by wanglele's avatar wanglele

批量空投修改

parent fd38faac
......@@ -153,7 +153,7 @@ public class GoblinNftExCodeServiceImpl implements IGoblinNftExCodeService {
if (StringUtil.isNotBlank(gnc.getBoxSkuId()) && gnc.getSkuId().equals(goblinNftExSku.getSkuId())) {
gnc.setExStartTime(goblinNftExSku.getExStartTime());
gnc.setExStopTime(goblinNftExSku.getExStopTime());
if (now.isAfter(goblinNftExSku.getExStopTime())) {
if (now.isAfter(goblinNftExSku.getExStopTime()) && !gnc.getState().equals(2)) {
gnc.setState(3);
}
break;
......@@ -161,7 +161,7 @@ public class GoblinNftExCodeServiceImpl implements IGoblinNftExCodeService {
if (gnc.getSkuId().equals(goblinNftExSku.getSkuId())) {
gnc.setExStartTime(goblinNftExSku.getExStartTime());
gnc.setExStopTime(goblinNftExSku.getExStopTime());
if (now.isAfter(goblinNftExSku.getExStopTime())) {
if (now.isAfter(goblinNftExSku.getExStopTime()) && !gnc.getState().equals(2)) {
gnc.setState(3);
}
break;
......@@ -459,7 +459,7 @@ public class GoblinNftExCodeServiceImpl implements IGoblinNftExCodeService {
userIds.deleteCharAt(userIds.length() - 1);
hashMap.put("codes", codes.toString());
hashMap.put("userIds", userIds.toString());
hashMap.put("phones",phones.toString());
hashMap.put("phones", phones.toString());
hashMap.put("adminUid", adminUid);
queueUtils.sendMssPhoneCodeRedis(hashMap);
userIdList.clear();
......@@ -480,7 +480,7 @@ public class GoblinNftExCodeServiceImpl implements IGoblinNftExCodeService {
codes.deleteCharAt(codes.length() - 1);
userIds.deleteCharAt(userIds.length() - 1);
hashMap.put("codes", codes.toString());
hashMap.put("phones",phones.toString());
hashMap.put("phones", phones.toString());
hashMap.put("userIds", userIds.toString());
hashMap.put("adminUid", adminUid);
queueUtils.sendMssPhoneCodeRedis(hashMap);
......
......@@ -246,7 +246,8 @@ public class GoblinRedisUtils {
* @param code
*/
public void removeCode(String code) {
getRedis().del(code);
String key = GoblinRedisConst.ACTIVITY_SKU_CODE.concat(code);
getRedis().del(key);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment