记得上下班打卡 | 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
476f3b9d
Commit
476f3b9d
authored
Jul 12, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wf hjc ajb
parent
b8a1ba38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
GoblinGagoController.java
.../web/controller/zhengzai/goblin/GoblinGagoController.java
+8
-7
liquidnet-service-order.yml
...t-bus-config/liquidnet-config/liquidnet-service-order.yml
+1
-0
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/goblin/GoblinGagoController.java
View file @
476f3b9d
...
...
@@ -36,9 +36,9 @@ public class GoblinGagoController extends BaseController {
RedisDataSourceUtil
redisDataSourceUtil
;
@Autowired
GoblinRedisUtils
goblinRedisUtils
;
@Value
(
"${liquidnet.service.order.url}"
)
private
String
orderUrl
;
// private String orderUrl = "http://127.0.0.1
/order";
//
@Value("${liquidnet.service.order.url}")
//
private String orderUrl;
private
String
orderUrl
=
"http://127.0.0.1:9004
/order"
;
private
final
String
prefix
=
"zhengzai/goblin/gago"
;
...
...
@@ -78,10 +78,6 @@ public class GoblinGagoController extends BaseController {
if
(
cNufCount
>=
nftNum
)
{
return
AjaxResult
.
error
(
"该序号已售卖"
);
}
boolean
addResult
=
goblinRedisUtils
.
addNftList
(
skuId
,
nftNum
+
""
);
if
(!
addResult
)
{
return
AjaxResult
.
error
(
"该序号已被占用"
);
}
GoblinGoodsSkuInfoVo
skuInfoVo
=
goblinRedisUtils
.
getGoodsSkuInfoVo
(
skuId
);
if
(
skuInfoVo
==
null
||
skuInfoVo
.
getSkuStock
()
<=
nftNum
)
{
return
AjaxResult
.
error
(
"该序号不存在"
);
...
...
@@ -89,12 +85,17 @@ public class GoblinGagoController extends BaseController {
if
(
skuInfoVo
.
getUnbox
().
equals
(
"1"
))
{
return
AjaxResult
.
error
(
"不支持盲盒"
);
}
boolean
addResult
=
goblinRedisUtils
.
addNftList
(
skuId
,
nftNum
+
""
);
if
(!
addResult
)
{
return
AjaxResult
.
error
(
"该序号已被占用"
);
}
//
MultiValueMap
<
String
,
String
>
params
=
CollectionUtil
.
linkedMultiValueMapStringString
();
params
.
add
(
"userId"
,
uid
);
params
.
add
(
"skuId"
,
skuId
);
MultiValueMap
<
String
,
String
>
header
=
CollectionUtil
.
linkedMultiValueMapStringString
();
header
.
add
(
"Accept"
,
"application/json;charset=UTF-8"
);
System
.
out
.
println
(
orderUrl
.
concat
(
"/goblin/nft/airdropInner"
));
String
returnData
=
HttpUtil
.
post
(
orderUrl
.
concat
(
"/goblin/nft/airdropInner"
),
params
,
header
);
ResponseDto
<
String
>
innerReturnVo
=
JsonUtils
.
fromJson
(
returnData
,
new
TypeReference
<
ResponseDto
<
String
>>()
{
});
...
...
liquidnet-bus-config/liquidnet-config/liquidnet-service-order.yml
View file @
476f3b9d
...
...
@@ -107,6 +107,7 @@ global-auth:
-
${liquidnet.info.context}/goblin/nft/syncOrder
-
${liquidnet.info.context}/goblin/nft/refundSyncOrder
-
${liquidnet.info.context}/goblin/nft/airdrop
-
${liquidnet.info.context}/goblin/nft/airdropInner
# -----------------------------------------------------------
# -----------------------------------------------------------
...
...
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