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
68c9bbea
Commit
68c9bbea
authored
Mar 18, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分佣配置结构调整
parent
7e29f010
Pipeline
#71752
passed with stages
in 1 minute 11 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
6 deletions
+1
-6
DrmSharerConfig.java
...e/yanxuan/wx/store/sharer/biz/config/DrmSharerConfig.java
+1
-6
No files found.
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/config/DrmSharerConfig.java
View file @
68c9bbea
...
...
@@ -208,7 +208,7 @@ public class DrmSharerConfig {
if
(
null
==
sharerInfo
)
{
return
;
}
// 分佣比例为小数, 微信接口参数应当分佣比例*
1000
为整数
// 分佣比例为小数, 微信接口参数应当分佣比例*
比例
为整数
BigDecimal
commissionRatio
=
newCommissionSharer
.
getCommissionRatio
()
.
multiply
(
new
BigDecimal
(
WeChatApi
.
WECHAT_COMMISSION_RATIO_MULTIPLIER
))
.
setScale
(
0
,
RoundingMode
.
DOWN
);
...
...
@@ -502,11 +502,6 @@ public class DrmSharerConfig {
}
private
void
updateSharerInfo
(
SharerInfo
sharerInfo
,
String
commissionRatio
)
{
String
openId
=
sharerInfo
.
getOpenId
();
if
(
StringUtils
.
isNotBlank
(
openId
))
{
BigDecimal
sharerCommissionRatio
=
getSharerOrDefaultCommissionRatio
(
openId
);
commissionRatio
=
sharerCommissionRatio
.
setScale
(
2
,
RoundingMode
.
HALF_UP
).
toPlainString
();
}
LambdaUpdateWrapper
<
SharerInfo
>
sharerInfoLuw
=
Wrappers
.
lambdaUpdate
();
sharerInfoLuw
.
set
(
SharerInfo:
:
getCommissionRatio
,
commissionRatio
);
sharerInfoLuw
.
set
(
SharerInfo:
:
getUpdateTime
,
new
Date
());
...
...
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