记得上下班打卡 | 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
f0a1d8e9
Commit
f0a1d8e9
authored
Apr 24, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加 nft技术开关 相关接口
parent
51a4ce29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
GoblinNftGoodsAppController.java
...ervice/goblin/controller/GoblinNftGoodsAppController.java
+8
-0
GoblinRedisUtils.java
...a/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
+12
-2
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/GoblinNftGoodsAppController.java
View file @
f0a1d8e9
...
@@ -89,4 +89,12 @@ public class GoblinNftGoodsAppController {
...
@@ -89,4 +89,12 @@ public class GoblinNftGoodsAppController {
public
ResponseDto
<
Integer
>
getOpenNftTec
()
{
public
ResponseDto
<
Integer
>
getOpenNftTec
()
{
return
ResponseDto
.
success
(
redisUtils
.
getOpenNftTec
(
CurrentUtil
.
getCurrentUid
()));
return
ResponseDto
.
success
(
redisUtils
.
getOpenNftTec
(
CurrentUtil
.
getCurrentUid
()));
}
}
@GetMapping
(
"hasNftTec"
)
@ApiOperation
(
"获取 是否拥有技术nft权限"
)
public
ResponseDto
<
Integer
>
getBuyNftTec
()
{
return
ResponseDto
.
success
(
redisUtils
.
getBuyNftTec
(
CurrentUtil
.
getCurrentUid
()));
}
}
}
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
View file @
f0a1d8e9
...
@@ -1831,6 +1831,7 @@ public class GoblinRedisUtils {
...
@@ -1831,6 +1831,7 @@ public class GoblinRedisUtils {
/**
/**
* 设置 技术部nft特效开关
* 设置 技术部nft特效开关
*
* @param uid
* @param uid
* @param status
* @param status
*/
*/
...
@@ -1851,14 +1852,23 @@ public class GoblinRedisUtils {
...
@@ -1851,14 +1852,23 @@ public class GoblinRedisUtils {
/**
/**
* 获取 技术部nft特效开关
* 获取 技术部nft特效开关
*
* @param uid
* @param uid
* @return
* @return
*/
*/
public
Integer
getOpenNftTec
(
String
uid
){
public
Integer
getOpenNftTec
(
String
uid
)
{
String
rdk
=
GoblinRedisConst
.
OPEN_NFT_TEC
.
concat
(
uid
);
String
rdk
=
GoblinRedisConst
.
OPEN_NFT_TEC
.
concat
(
uid
);
Object
obj
=
redisUtil
.
get
(
rdk
);
Object
obj
=
redisUtil
.
get
(
rdk
);
if
(
obj
==
null
)
{
if
(
obj
==
null
)
{
return
null
;
Integer
data
=
getBuyNftTec
(
uid
);
if
(
data
==
null
)
{
return
null
;
}
else
if
(
data
==
1
)
{
setOpenNftTec
(
uid
,
1
);
return
1
;
}
else
{
return
null
;
}
}
else
{
}
else
{
return
(
int
)
obj
;
return
(
int
)
obj
;
}
}
...
...
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