记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
2daf3915
Commit
2daf3915
authored
Apr 24, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
记录用户是否购买过技术部数字藏品 setBuyNftTec
parent
517e84f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
7 deletions
+23
-7
GoblinRedisConst.java
...m/liquidnet/service/goblin/constant/GoblinRedisConst.java
+12
-5
GoblinRedisUtils.java
...a/com/liquidnet/service/order/utils/GoblinRedisUtils.java
+11
-2
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/constant/GoblinRedisConst.java
View file @
2daf3915
...
...
@@ -235,7 +235,7 @@ public class GoblinRedisConst {
/**
* skuId保存预约用户头像
*
{anticipate:skuId:avatar:${skuId},List<String>}
* {anticipate:skuId:avatar:${skuId},List<String>}
*/
public
static
final
String
ANTICIPATE_SKUID_AVATAR
=
PREFIX
.
concat
(
"anticipate:skuId:avatar:"
);
...
...
@@ -246,7 +246,7 @@ public class GoblinRedisConst {
/**
* nft兑换活动配置
*/
public
static
final
String
NFT_EX_ACTIVITY
=
PREFIX
.
concat
(
"nft:ex:activity:"
);
public
static
final
String
NFT_EX_ACTIVITY
=
PREFIX
.
concat
(
"nft:ex:activity:"
);
/**
* nft兑换活动和sku的关联
...
...
@@ -264,7 +264,6 @@ public class GoblinRedisConst {
public
static
final
String
REDIS_GOBLIN_EX_BUY_COUNT
=
PREFIX
.
concat
(
"nft:ex:buy:"
);
/**
* 用户助力
*/
...
...
@@ -296,13 +295,21 @@ public class GoblinRedisConst {
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
BUY_NFT_TEC
=
PREFIX
.
concat
(
"buy:nft:tec:"
);
// $key+$uid 是否购买过技术数字藏品
/**
* 是否开启技术数字藏品特效
*/
public
static
final
String
OPEN_NFT_TEC
=
PREFIX
.
concat
(
"open:nft:tec:"
);
//$key+$uid 是否开启技术数字藏品特效
/* ----------------------------------------------------------------- */
/* ----------------------------------------------------------------- */
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/utils/GoblinRedisUtils.java
View file @
2daf3915
...
...
@@ -368,9 +368,9 @@ public class GoblinRedisUtils {
String
redisKey
=
KylinRedisConst
.
ADAM_IS_MEMBER
.
concat
(
uid
);
Object
obj
=
redisUtil
.
get
(
redisKey
);
if
(
obj
==
null
)
{
if
(
obj
==
null
)
{
return
null
;
}
else
{
}
else
{
return
(
Integer
)
obj
;
}
}
...
...
@@ -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
);
}
/* ----------------------------------- ----------------------------------- */
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment