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
cdee69b2
Commit
cdee69b2
authored
Mar 13, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联调问题处理
parent
28d7ba8b
Pipeline
#71578
passed with stages
in 59 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
11 deletions
+4
-11
AuthInterceptor.java
...xuan/wx/store/sharer/biz/interceptor/AuthInterceptor.java
+0
-7
ProductServiceImpl.java
.../wx/store/sharer/biz/service/impl/ProductServiceImpl.java
+2
-2
WeChatShopPromoteProductLinkRequest.java
...ion/handler/impl/WeChatShopPromoteProductLinkRequest.java
+2
-2
No files found.
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/interceptor/AuthInterceptor.java
View file @
cdee69b2
...
@@ -64,11 +64,4 @@ public class AuthInterceptor implements HandlerInterceptor {
...
@@ -64,11 +64,4 @@ public class AuthInterceptor implements HandlerInterceptor {
Object
handler
,
Exception
ex
)
{
Object
handler
,
Exception
ex
)
{
LoginUserContextHolder
.
remove
();
LoginUserContextHolder
.
remove
();
}
}
/**
* 刷新token缓存过期时间
*/
private
void
resetCacheExpire
(
String
token
,
String
userInfo
)
{
redisClient
.
setStr
(
CoreConstant
.
REDIS_TOKEN_USER_KEY
+
token
,
userInfo
,
CoreConstant
.
REDIS_TOKEN_EXPIRE_SECONDS
);
}
}
}
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/service/impl/ProductServiceImpl.java
View file @
cdee69b2
...
@@ -102,9 +102,9 @@ public class ProductServiceImpl implements IProductService {
...
@@ -102,9 +102,9 @@ 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
());
// 获取推广链接
// 获取推广链接
if
(
null
!=
loginUserInfo
&&
StringUtils
.
isNotBlank
(
loginUserInfo
.
get
Open
Id
())){
if
(
null
!=
loginUserInfo
&&
StringUtils
.
isNotBlank
(
loginUserInfo
.
get
SharerApp
Id
())){
WeChatPromoteProductLinkVO
promoteProductLinkVO
=
weChatShopPromoteProductLinkRequest
.
handle
(
WeChatPromoteProductLinkVO
promoteProductLinkVO
=
weChatShopPromoteProductLinkRequest
.
handle
(
loginUserInfo
.
get
Open
Id
(),
loginUserInfo
.
get
SharerApp
Id
(),
Long
.
valueOf
(
item
.
getProduct_id
()),
Long
.
valueOf
(
item
.
getProduct_id
()),
item
.
getShop_appid
());
item
.
getShop_appid
());
listVO
.
setProductUrl
(
null
!=
promoteProductLinkVO
?
promoteProductLinkVO
.
getShort_link
()
:
null
);
listVO
.
setProductUrl
(
null
!=
promoteProductLinkVO
?
promoteProductLinkVO
.
getShort_link
()
:
null
);
...
...
yanxuan-wx-store-sharer-integration/src/main/java/com/netease/yanxuan/wx/store/sharer/integration/handler/impl/WeChatShopPromoteProductLinkRequest.java
View file @
cdee69b2
...
@@ -41,9 +41,9 @@ public class WeChatShopPromoteProductLinkRequest implements IWeChatRequest {
...
@@ -41,9 +41,9 @@ public class WeChatShopPromoteProductLinkRequest implements IWeChatRequest {
/**
/**
* 处理
* 处理
*/
*/
public
WeChatPromoteProductLinkVO
handle
(
String
open
Id
,
Long
productId
,
String
shopAppid
)
{
public
WeChatPromoteProductLinkVO
handle
(
String
sharerApp
Id
,
Long
productId
,
String
shopAppid
)
{
WeChatPromoteProductLinkBO
params
=
WeChatPromoteProductLinkBO
.
builder
()
WeChatPromoteProductLinkBO
params
=
WeChatPromoteProductLinkBO
.
builder
()
.
sharer_
openid
(
open
Id
)
.
sharer_
appid
(
sharerApp
Id
)
.
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