Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-wx-store-sharer
Overview
Overview
Details
Activity
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
wx
yanxuan-wx-store-sharer
Commits
9e652ef7
Commit
9e652ef7
authored
Mar 13, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联调问题处理
parent
3c13394c
Pipeline
#71569
passed with stages
in 1 minute 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
ProductServiceImpl.java
.../wx/store/sharer/biz/service/impl/ProductServiceImpl.java
+7
-3
WeChatShopPromoteProductLinkRequest.java
...ion/handler/impl/WeChatShopPromoteProductLinkRequest.java
+2
-1
No files found.
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/service/impl/ProductServiceImpl.java
View file @
9e652ef7
...
@@ -102,9 +102,13 @@ public class ProductServiceImpl implements IProductService {
...
@@ -102,9 +102,13 @@ public class ProductServiceImpl implements IProductService {
listVO
.
setShopAppid
(
item
.
getShop_appid
());
listVO
.
setShopAppid
(
item
.
getShop_appid
());
listVO
.
setProductId
(
item
.
getProduct_id
());
listVO
.
setProductId
(
item
.
getProduct_id
());
// 获取推广链接
// 获取推广链接
WeChatPromoteProductLinkVO
promoteProductLinkVO
=
weChatShopPromoteProductLinkRequest
.
handle
(
Long
.
valueOf
(
item
.
getProduct_id
()),
if
(
null
!=
loginUserInfo
&&
StringUtils
.
isNotBlank
(
loginUserInfo
.
getOpenId
())){
item
.
getShop_appid
());
WeChatPromoteProductLinkVO
promoteProductLinkVO
=
weChatShopPromoteProductLinkRequest
.
handle
(
listVO
.
setProductUrl
(
null
!=
promoteProductLinkVO
?
promoteProductLinkVO
.
getShort_link
()
:
null
);
loginUserInfo
.
getOpenId
(),
Long
.
valueOf
(
item
.
getProduct_id
()),
item
.
getShop_appid
());
listVO
.
setProductUrl
(
null
!=
promoteProductLinkVO
?
promoteProductLinkVO
.
getShort_link
()
:
null
);
}
return
listVO
;
return
listVO
;
})
})
.
filter
(
Objects:
:
nonNull
)
.
filter
(
Objects:
:
nonNull
)
...
...
yanxuan-wx-store-sharer-integration/src/main/java/com/netease/yanxuan/wx/store/sharer/integration/handler/impl/WeChatShopPromoteProductLinkRequest.java
View file @
9e652ef7
...
@@ -41,8 +41,9 @@ public class WeChatShopPromoteProductLinkRequest implements IWeChatRequest {
...
@@ -41,8 +41,9 @@ public class WeChatShopPromoteProductLinkRequest implements IWeChatRequest {
/**
/**
* 处理
* 处理
*/
*/
public
WeChatPromoteProductLinkVO
handle
(
Long
productId
,
String
shopAppid
)
{
public
WeChatPromoteProductLinkVO
handle
(
String
openId
,
Long
productId
,
String
shopAppid
)
{
WeChatPromoteProductLinkBO
params
=
WeChatPromoteProductLinkBO
.
builder
()
WeChatPromoteProductLinkBO
params
=
WeChatPromoteProductLinkBO
.
builder
()
.
sharer_openid
(
openId
)
.
product_id
(
productId
)
.
product_id
(
productId
)
.
shop_appid
(
shopAppid
)
.
shop_appid
(
shopAppid
)
.
build
();
.
build
();
...
...
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