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

Commit 2daf3915 authored by 胡佳晨's avatar 胡佳晨

记录用户是否购买过技术部数字藏品 setBuyNftTec

parent 517e84f5
...@@ -264,7 +264,6 @@ public class GoblinRedisConst { ...@@ -264,7 +264,6 @@ public class GoblinRedisConst {
public static final String REDIS_GOBLIN_EX_BUY_COUNT = PREFIX.concat("nft:ex:buy:"); public static final String REDIS_GOBLIN_EX_BUY_COUNT = PREFIX.concat("nft:ex:buy:");
/** /**
* 用户助力 * 用户助力
*/ */
...@@ -296,13 +295,21 @@ public class GoblinRedisConst { ...@@ -296,13 +295,21 @@ public class GoblinRedisConst {
public static final String ANTICIPATE_SHARE_SID = PREFIX.concat("anticipate:share:sid:"); public static final String ANTICIPATE_SHARE_SID = PREFIX.concat("anticipate:share:sid:");
/** /**
* 活动兑换码 * 活动兑换码
*/ */
public static final String ACTIVITY_SKU_CODE = PREFIX.concat("activity:sku:code:"); public static final String ACTIVITY_SKU_CODE = PREFIX.concat("activity:sku:code:");
/**
* 是否购买过技术数字藏品
*/
public static final String BUY_NFT_TEC = PREFIX.concat("buy:nft:tec:");// $key+$uid 是否购买过技术数字藏品
/**
* 是否开启技术数字藏品特效
*/
public static final String OPEN_NFT_TEC = PREFIX.concat("open:nft:tec:");//$key+$uid 是否开启技术数字藏品特效
/* ----------------------------------------------------------------- */ /* ----------------------------------------------------------------- */
/* ----------------------------------------------------------------- */ /* ----------------------------------------------------------------- */
......
...@@ -368,9 +368,9 @@ public class GoblinRedisUtils { ...@@ -368,9 +368,9 @@ public class GoblinRedisUtils {
String redisKey = KylinRedisConst.ADAM_IS_MEMBER String redisKey = KylinRedisConst.ADAM_IS_MEMBER
.concat(uid); .concat(uid);
Object obj = redisUtil.get(redisKey); Object obj = redisUtil.get(redisKey);
if(obj==null){ if (obj == null) {
return null; return null;
}else{ } else {
return (Integer) obj; return (Integer) obj;
} }
} }
...@@ -466,5 +466,14 @@ public class GoblinRedisUtils { ...@@ -466,5 +466,14 @@ public class GoblinRedisUtils {
/* ----------------------------------- ---------- ----------------------------------- */ /* ----------------------------------- ---------- ----------------------------------- */
/**
* 记录用户是否购买过技术部数字藏品
* @param uid
*/
public void setBuyNftTec(String uid) {
String rdk = GoblinRedisConst.BUY_NFT_TEC.concat(uid);
redisUtil.set(rdk, 1);
}
/* ----------------------------------- ----------------------------------- */ /* ----------------------------------- ----------------------------------- */
} }
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