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
1197d02d
Commit
1197d02d
authored
Mar 17, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分佣配置结构调整
parent
614d6fc1
Pipeline
#71716
passed with stages
in 1 minute 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
DrmSharerConfig.java
...e/yanxuan/wx/store/sharer/biz/config/DrmSharerConfig.java
+10
-3
No files found.
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/config/DrmSharerConfig.java
View file @
1197d02d
...
@@ -405,16 +405,23 @@ public class DrmSharerConfig {
...
@@ -405,16 +405,23 @@ public class DrmSharerConfig {
return
;
return
;
}
}
SharerInfo
sharerInfo
=
getSharerInfoByOpenId
(
oldBo
.
getOpenId
());
SharerInfo
sharerInfo
=
getSharerInfoByOpenId
(
oldBo
.
getOpenId
());
if
(
null
==
sharerInfo
){
return
;
}
// 设置推客分佣比例
// 设置推客分佣比例
boolean
isSuccess
=
false
;
boolean
isSuccess
=
false
;
try
{
try
{
// 获取推客的分佣比例
BigDecimal
sharerCommissionRatio
=
getSharerCommissionRatio
(
sharerInfo
.
getOpenId
());
if
(
StringUtils
.
isNotBlank
(
sharerInfo
.
getSharerAppid
()))
{
if
(
StringUtils
.
isNotBlank
(
sharerInfo
.
getSharerAppid
()))
{
// 分佣比例为小数, 微信接口参数应当分佣比例*倍数 为整数
sharerCommissionRatio
=
sharerCommissionRatio
.
multiply
(
new
BigDecimal
(
WeChatApi
.
WECHAT_COMMISSION_RATIO_MULTIPLIER
))
.
setScale
(
0
,
RoundingMode
.
DOWN
);
// 设置推客分佣比例
// 设置推客分佣比例
weChatShopSetSharerProductCommissionRequest
.
handle
(
sharerInfo
.
getSharerAppid
(),
weChatShopSetSharerProductCommissionRequest
.
handle
(
sharerInfo
.
getSharerAppid
(),
Long
.
valueOf
(
oldBo
.
getProductId
()),
null
);
Long
.
valueOf
(
oldBo
.
getProductId
()),
sharerCommissionRatio
.
longValue
()
);
}
}
// 获取推客的分佣比例
BigDecimal
sharerCommissionRatio
=
getSharerCommissionRatio
(
sharerInfo
.
getOpenId
(),
null
);
// 保存推客商品记录
// 保存推客商品记录
saveSharerProductCommissionInfo
(
sharerInfo
.
getOpenId
(),
oldBo
.
getProductId
(),
saveSharerProductCommissionInfo
(
sharerInfo
.
getOpenId
(),
oldBo
.
getProductId
(),
sharerCommissionRatio
,
SharerProductCommission
.
UnsetEnum
.
UNSET
);
sharerCommissionRatio
,
SharerProductCommission
.
UnsetEnum
.
UNSET
);
...
...
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