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
75c9b479
Commit
75c9b479
authored
Mar 14, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联调问题处理
parent
21c629da
Pipeline
#71584
passed with stages
in 57 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
LoginUserHelper.java
...ase/yanxuan/wx/store/sharer/biz/core/LoginUserHelper.java
+2
-4
UserServiceImpl.java
...uan/wx/store/sharer/biz/service/impl/UserServiceImpl.java
+1
-2
No files found.
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/core/LoginUserHelper.java
View file @
75c9b479
...
@@ -34,21 +34,19 @@ public class LoginUserHelper {
...
@@ -34,21 +34,19 @@ public class LoginUserHelper {
/**
/**
* 保存用户认证信息
* 保存用户认证信息
*/
*/
public
LoginUserInfo
setLoginUserInfo
(
String
token
,
String
sharerAppId
)
{
public
void
setLoginUserInfo
(
String
token
,
String
sharerAppId
)
{
LoginUserInfo
loginUserInfo
=
getLoginUserInfo
(
token
);
LoginUserInfo
loginUserInfo
=
getLoginUserInfo
(
token
);
loginUserInfo
.
setSharerAppId
(
sharerAppId
);
loginUserInfo
.
setSharerAppId
(
sharerAppId
);
setLoginUserInfo
(
token
,
loginUserInfo
);
setLoginUserInfo
(
token
,
loginUserInfo
);
return
loginUserInfo
;
}
}
/**
/**
* 保存用户认证信息
* 保存用户认证信息
*/
*/
public
LoginUserInfo
setLoginUserInfo
(
String
token
,
String
openId
,
String
sharerAppId
)
{
public
void
setLoginUserInfo
(
String
token
,
String
openId
,
String
sharerAppId
)
{
LoginUserInfo
loginUserInfo
=
LoginUserInfo
.
builder
()
LoginUserInfo
loginUserInfo
=
LoginUserInfo
.
builder
()
.
accessToken
(
token
).
openId
(
openId
).
sharerAppId
(
sharerAppId
).
build
();
.
accessToken
(
token
).
openId
(
openId
).
sharerAppId
(
sharerAppId
).
build
();
setLoginUserInfo
(
token
,
loginUserInfo
);
setLoginUserInfo
(
token
,
loginUserInfo
);
return
loginUserInfo
;
}
}
/**
/**
...
...
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/service/impl/UserServiceImpl.java
View file @
75c9b479
...
@@ -105,8 +105,7 @@ public class UserServiceImpl implements IUserService {
...
@@ -105,8 +105,7 @@ public class UserServiceImpl implements IUserService {
String
commissionType
=
null
!=
sharerInfoVO
.
getCommission_type
()
?
sharerInfoVO
.
getCommission_type
().
toString
()
:
CommissionTypeEnum
.
PLATFORM
.
getCode
();
String
commissionType
=
null
!=
sharerInfoVO
.
getCommission_type
()
?
sharerInfoVO
.
getCommission_type
().
toString
()
:
CommissionTypeEnum
.
PLATFORM
.
getCode
();
sharerInfo
.
setCommissionType
(
commissionType
);
sharerInfo
.
setCommissionType
(
commissionType
);
// 刷新缓存
// 刷新缓存
loginUserInfo
=
loginUserHelper
.
setLoginUserInfo
(
loginUserInfo
.
getAccessToken
(),
sharerInfoVO
.
getSharer_appid
());
loginUserHelper
.
setLoginUserInfo
(
loginUserInfo
.
getAccessToken
(),
sharerInfoVO
.
getSharer_appid
());
LoginUserContextHolder
.
set
(
loginUserInfo
);
}
}
}
}
}
}
...
...
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