Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
a6328afc
Commit
a6328afc
authored
Jul 17, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
进入别人藏馆自动关注。推荐人为平台
parent
d5785b52
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
21 deletions
+2
-21
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/CollectionItemsRelationServiceImpl.java
...impl/distribution/CollectionItemsRelationServiceImpl.java
+2
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
...wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
+0
-20
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/CollectionItemsRelationServiceImpl.java
View file @
a6328afc
...
...
@@ -2,6 +2,7 @@ package com.wwdz.ch.wx.impl.distribution;
import
com.github.pagehelper.PageInfo
;
import
com.wwdz.ch.core.consts.AuctionEnum
;
import
com.wwdz.ch.core.consts.CommConsts
;
import
com.wwdz.ch.core.consts.DistributionEnum
;
import
com.wwdz.ch.core.entity.SupplierItemVo
;
import
com.wwdz.ch.core.type.PageSearchResult
;
...
...
@@ -117,7 +118,7 @@ public class CollectionItemsRelationServiceImpl implements CollectionItemsRelati
FollowFansRecordRequestDto
followFansRecordRequestDto
=
new
FollowFansRecordRequestDto
();
followFansRecordRequestDto
.
setFollowerId
(
searchUserId
);
followFansRecordRequestDto
.
setFansId
(
dto
.
getUserId
());
followFansRecordRequestDto
.
setIntroducerId
(
dto
.
getUserId
()
);
followFansRecordRequestDto
.
setIntroducerId
(
CommConsts
.
SYSTEM_ACCOUNT
);
followFansRecordService
.
follow
(
followFansRecordRequestDto
);
logger
.
info
(
"用户id:{} 关注了 用户id为 {}, 介绍人为 {}"
,
dto
.
getUserId
(),
searchUserId
,
dto
.
getUserId
());
}
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
View file @
a6328afc
...
...
@@ -876,26 +876,6 @@ public class SupplierItemServiceImpl implements SupplierItemService {
}
return
Result
.
failed
(
"该藏品已删除"
);
}
/* //如果是客态,则自动关注该用户
if (StringUtils.hasLength(dto.getShareRecordId())) {
if (collectionShareRecord != null && collectionShareRecord.getItemUserId().longValue() != dto.getUserId().longValue()) {
FollowFansRecordRequestDto followFansRecordRequestDto = new FollowFansRecordRequestDto();
followFansRecordRequestDto.setFollowerId(collectionShareRecord.getItemUserId());
followFansRecordRequestDto.setFansId(dto.getUserId());
followFansRecordRequestDto.setIntroducerId(collectionShareRecord.getSharerId());
followFansRecordService.follow(followFansRecordRequestDto);
logger.info("用户id:{} 关注了 用户id为 {}, 介绍人为", dto.getUserId(), collectionShareRecord.getItemUserId(), collectionShareRecord.getSharerId());
}
} else {
if (supplierItem.getCreatorId().longValue() != dto.getUserId().longValue()) {
FollowFansRecordRequestDto followFansRecordRequestDto = new FollowFansRecordRequestDto();
followFansRecordRequestDto.setFollowerId(collectionShareRecord.getItemUserId());
followFansRecordRequestDto.setFansId(dto.getUserId());
followFansRecordRequestDto.setIntroducerId(CommConsts.SYSTEM_ACCOUNT);
followFansRecordService.follow(followFansRecordRequestDto);
logger.info("用户id:{} 关注了 用户id为 {}, 介绍人为", dto.getUserId(), collectionShareRecord.getItemUserId(), collectionShareRecord.getSharerId());
}
}*/
//返回用户二维码
User
user
=
cacheUtil
.
appletUserInfoCache
.
get
(
supplierItem
.
getCreatorId
()).
get
();
if
(
user
!=
null
)
{
...
...
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