记得上下班打卡 | 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
b6941621
Commit
b6941621
authored
Apr 28, 2022
by
GaoHu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exit助力预约头像获取修改,取发起助力人头像,原预约逻辑头像取预约人头像
parent
be7eb51d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
GoblinGoodsAnticipateServiceImpl.java
...goblin/service/impl/GoblinGoodsAnticipateServiceImpl.java
+8
-6
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/GoblinGoodsAnticipateServiceImpl.java
View file @
b6941621
...
@@ -88,12 +88,12 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
...
@@ -88,12 +88,12 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
return
ResponseDto
.
failure
(
"预约失败!"
);
return
ResponseDto
.
failure
(
"预约失败!"
);
}
}
}
}
uidAboutBySkuId
(
skuId
,
uid
);
uidAboutBySkuId
(
skuId
,
uid
,
null
);
}
}
return
ResponseDto
.
success
();
return
ResponseDto
.
success
();
}
}
private
void
uidAboutBySkuId
(
String
skuId
,
String
uid
)
{
private
void
uidAboutBySkuId
(
String
skuId
,
String
uid
,
String
avatar
)
{
GoblinGoodAnticipateUserVo
user
=
new
GoblinGoodAnticipateUserVo
();
GoblinGoodAnticipateUserVo
user
=
new
GoblinGoodAnticipateUserVo
();
user
.
setUid
(
uid
);
user
.
setUid
(
uid
);
user
.
setSkuId
(
skuId
);
user
.
setSkuId
(
skuId
);
...
@@ -118,9 +118,11 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
...
@@ -118,9 +118,11 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
//获取用户头像个数小于等于2则保存用户头像
//获取用户头像个数小于等于2则保存用户头像
List
<
String
>
userAvatar
=
goblinRedisUtils
.
getUserAvatar
(
skuId
);
List
<
String
>
userAvatar
=
goblinRedisUtils
.
getUserAvatar
(
skuId
);
if
(
userAvatar
!=
null
&&
userAvatar
.
size
()
<=
2
)
{
if
(
userAvatar
!=
null
&&
userAvatar
.
size
()
<=
2
)
{
//查询用户信息获取用户头像并保存
//获取预约人头像
AdamUserInfoVo
userInfo
=
goblinAnticipateUtils
.
getUserInfo
();
if
(
avatar
==
null
){
goblinRedisUtils
.
setUserAvatar
(
skuId
,
userInfo
.
getAvatar
());
avatar
=
goblinAnticipateUtils
.
getUserInfo
().
getAvatar
();
}
goblinRedisUtils
.
setUserAvatar
(
skuId
,
avatar
);
}
}
}
}
...
@@ -256,7 +258,7 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
...
@@ -256,7 +258,7 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
//判断主力人数是否达标,达标则自动预约
//判断主力人数是否达标,达标则自动预约
if
(
shareVo
.
getPeopleType
().
equals
(
goblinRedisUtils
.
getHelpSidAddHelp
(
sid
))){
if
(
shareVo
.
getPeopleType
().
equals
(
goblinRedisUtils
.
getHelpSidAddHelp
(
sid
))){
//主力人数达到可预约条件
//主力人数达到可预约条件
uidAboutBySkuId
(
shareVo
.
getSkuId
(),
shareVo
.
getUid
());
uidAboutBySkuId
(
shareVo
.
getSkuId
(),
shareVo
.
getUid
()
,
shareVo
.
getAvatar
()
);
}
}
return
ResponseDto
.
success
();
return
ResponseDto
.
success
();
}
else
{
}
else
{
...
...
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