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
edc17019
Commit
edc17019
authored
Mar 14, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联调问题处理
parent
0b018a60
Pipeline
#71618
passed with stages
in 56 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
10 deletions
+14
-10
DrmSharerConfig.java
...e/yanxuan/wx/store/sharer/biz/config/DrmSharerConfig.java
+8
-5
UserServiceImpl.java
...uan/wx/store/sharer/biz/service/impl/UserServiceImpl.java
+2
-1
WeChatShopSetSharerCommissionRequest.java
...on/handler/impl/WeChatShopSetSharerCommissionRequest.java
+1
-1
WeChatShopSetSharerProductCommissionRequest.java
...ler/impl/WeChatShopSetSharerProductCommissionRequest.java
+1
-1
WeChatSetSharerCommissionBO.java
...ntegration/meta/model/bo/WeChatSetSharerCommissionBO.java
+1
-1
WeChatSetSharerProductCommissionBO.java
...ion/meta/model/bo/WeChatSetSharerProductCommissionBO.java
+1
-1
No files found.
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/config/DrmSharerConfig.java
View file @
edc17019
...
@@ -154,7 +154,7 @@ public class DrmSharerConfig {
...
@@ -154,7 +154,7 @@ public class DrmSharerConfig {
boolean
isSuccess
=
false
;
boolean
isSuccess
=
false
;
try
{
try
{
// 设置推客分佣比例
// 设置推客分佣比例
weChatShopSetSharerCommissionRequest
.
handle
(
sharerInfoVO
.
getSharer_appid
(),
commissionRatio
.
int
Value
());
weChatShopSetSharerCommissionRequest
.
handle
(
sharerInfoVO
.
getSharer_appid
(),
commissionRatio
.
long
Value
());
isSuccess
=
true
;
isSuccess
=
true
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"设置推客的的分佣类型和比例信息失败"
,
e
);
log
.
error
(
"设置推客的的分佣类型和比例信息失败"
,
e
);
...
@@ -220,7 +220,7 @@ public class DrmSharerConfig {
...
@@ -220,7 +220,7 @@ public class DrmSharerConfig {
boolean
isSuccess
=
false
;
boolean
isSuccess
=
false
;
try
{
try
{
// 设置推客分佣比例
// 设置推客分佣比例
weChatShopSetSharerCommissionRequest
.
handle
(
sharerAppid
,
commissionRatio
.
int
Value
());
weChatShopSetSharerCommissionRequest
.
handle
(
sharerAppid
,
commissionRatio
.
long
Value
());
isSuccess
=
true
;
isSuccess
=
true
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"设置推客的的分佣类型和比例信息失败"
,
e
);
log
.
error
(
"设置推客的的分佣类型和比例信息失败"
,
e
);
...
@@ -250,7 +250,7 @@ public class DrmSharerConfig {
...
@@ -250,7 +250,7 @@ public class DrmSharerConfig {
boolean
isSuccess
=
false
;
boolean
isSuccess
=
false
;
try
{
try
{
// 设置推客分佣比例
// 设置推客分佣比例
weChatShopSetSharerCommissionRequest
.
handle
(
sharerAppid
,
commissionRatio
.
int
Value
());
weChatShopSetSharerCommissionRequest
.
handle
(
sharerAppid
,
commissionRatio
.
long
Value
());
isSuccess
=
true
;
isSuccess
=
true
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"设置推客的的分佣类型和比例信息失败"
,
e
);
log
.
error
(
"设置推客的的分佣类型和比例信息失败"
,
e
);
...
@@ -372,12 +372,15 @@ public class DrmSharerConfig {
...
@@ -372,12 +372,15 @@ public class DrmSharerConfig {
}
}
// 分佣比例为小数, 微信接口参数应当分佣比例*倍数 为整数
// 分佣比例为小数, 微信接口参数应当分佣比例*倍数 为整数
BigDecimal
commissionRatio
=
newBo
.
getCommissionRatio
()
BigDecimal
commissionRatio
=
newBo
.
getCommissionRatio
()
.
multiply
(
new
BigDecimal
(
WeChatApi
.
WECHAT_COMMISSION_RATIO_MULTIPLIER
));
.
multiply
(
new
BigDecimal
(
WeChatApi
.
WECHAT_COMMISSION_RATIO_MULTIPLIER
))
.
setScale
(
0
,
RoundingMode
.
DOWN
);
// 设置推客分佣比例
// 设置推客分佣比例
boolean
isSuccess
=
false
;
boolean
isSuccess
=
false
;
try
{
try
{
// 设置推客分佣比例
// 设置推客分佣比例
weChatShopSetSharerProductCommissionRequest
.
handle
(
sharerAppid
,
Long
.
valueOf
(
newBo
.
getProductId
()),
commissionRatio
.
toPlainString
());
weChatShopSetSharerProductCommissionRequest
.
handle
(
sharerAppid
,
Long
.
valueOf
(
newBo
.
getProductId
()),
commissionRatio
.
longValue
());
isSuccess
=
true
;
isSuccess
=
true
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"设置推客的的分佣类型和比例信息失败"
,
e
);
log
.
error
(
"设置推客的的分佣类型和比例信息失败"
,
e
);
...
...
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/service/impl/UserServiceImpl.java
View file @
edc17019
...
@@ -168,7 +168,8 @@ public class UserServiceImpl implements IUserService {
...
@@ -168,7 +168,8 @@ public class UserServiceImpl implements IUserService {
.
multiply
(
new
BigDecimal
(
WeChatApi
.
WECHAT_COMMISSION_RATIO_MULTIPLIER
))
.
multiply
(
new
BigDecimal
(
WeChatApi
.
WECHAT_COMMISSION_RATIO_MULTIPLIER
))
.
setScale
(
0
,
RoundingMode
.
DOWN
);
.
setScale
(
0
,
RoundingMode
.
DOWN
);
// 设置推客分佣比例
// 设置推客分佣比例
weChatShopSetSharerCommissionRequest
.
handle
(
loginUserInfo
.
getSharerAppId
(),
commissionRatio
.
intValue
());
weChatShopSetSharerCommissionRequest
.
handle
(
loginUserInfo
.
getSharerAppId
(),
commissionRatio
.
longValue
());
}
}
private
SharerInfoVO
getSharerRegisterBindInfo
(
String
openId
)
{
private
SharerInfoVO
getSharerRegisterBindInfo
(
String
openId
)
{
...
...
yanxuan-wx-store-sharer-integration/src/main/java/com/netease/yanxuan/wx/store/sharer/integration/handler/impl/WeChatShopSetSharerCommissionRequest.java
View file @
edc17019
...
@@ -42,7 +42,7 @@ public class WeChatShopSetSharerCommissionRequest implements IWeChatRequest {
...
@@ -42,7 +42,7 @@ public class WeChatShopSetSharerCommissionRequest implements IWeChatRequest {
/**
/**
* 处理
* 处理
*/
*/
public
WeChatCoreVO
handle
(
String
sharerAppid
,
Integer
commissionRatio
)
{
public
WeChatCoreVO
handle
(
String
sharerAppid
,
Long
commissionRatio
)
{
WeChatSetSharerCommissionBO
params
=
WeChatSetSharerCommissionBO
.
builder
()
WeChatSetSharerCommissionBO
params
=
WeChatSetSharerCommissionBO
.
builder
()
.
sharer_appid
(
sharerAppid
)
.
sharer_appid
(
sharerAppid
)
.
commission_type
(
CommissionTypeEnum
.
PLATFORM
.
getCode
())
.
commission_type
(
CommissionTypeEnum
.
PLATFORM
.
getCode
())
...
...
yanxuan-wx-store-sharer-integration/src/main/java/com/netease/yanxuan/wx/store/sharer/integration/handler/impl/WeChatShopSetSharerProductCommissionRequest.java
View file @
edc17019
...
@@ -41,7 +41,7 @@ public class WeChatShopSetSharerProductCommissionRequest implements IWeChatReque
...
@@ -41,7 +41,7 @@ public class WeChatShopSetSharerProductCommissionRequest implements IWeChatReque
/**
/**
* 处理
* 处理
*/
*/
public
WeChatCoreVO
handle
(
String
sharerAppid
,
Long
productId
,
Stri
ng
commissionRatio
)
{
public
WeChatCoreVO
handle
(
String
sharerAppid
,
Long
productId
,
Lo
ng
commissionRatio
)
{
WeChatSetSharerProductCommissionBO
params
=
WeChatSetSharerProductCommissionBO
.
builder
()
WeChatSetSharerProductCommissionBO
params
=
WeChatSetSharerProductCommissionBO
.
builder
()
.
sharer_appid
(
sharerAppid
)
.
sharer_appid
(
sharerAppid
)
.
product_id
(
productId
)
.
product_id
(
productId
)
...
...
yanxuan-wx-store-sharer-integration/src/main/java/com/netease/yanxuan/wx/store/sharer/integration/meta/model/bo/WeChatSetSharerCommissionBO.java
View file @
edc17019
...
@@ -26,5 +26,5 @@ public class WeChatSetSharerCommissionBO implements Serializable {
...
@@ -26,5 +26,5 @@ public class WeChatSetSharerCommissionBO implements Serializable {
/**
/**
* 平台分佣时的分佣比例,范围为【100000 - 900000】,代表【10%-90%】
* 平台分佣时的分佣比例,范围为【100000 - 900000】,代表【10%-90%】
*/
*/
private
Integer
commission_ratio
;
private
Long
commission_ratio
;
}
}
yanxuan-wx-store-sharer-integration/src/main/java/com/netease/yanxuan/wx/store/sharer/integration/meta/model/bo/WeChatSetSharerProductCommissionBO.java
View file @
edc17019
...
@@ -26,5 +26,5 @@ public class WeChatSetSharerProductCommissionBO implements Serializable {
...
@@ -26,5 +26,5 @@ public class WeChatSetSharerProductCommissionBO implements Serializable {
/**
/**
* 平台分佣时的分佣比例,范围为【100000 - 900000】,代表【10%-90%】
* 平台分佣时的分佣比例,范围为【100000 - 900000】,代表【10%-90%】
*/
*/
private
Stri
ng
commission_ratio
;
private
Lo
ng
commission_ratio
;
}
}
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