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
cbcfec7b
Commit
cbcfec7b
authored
Mar 14, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联调问题处理
parent
ed03a0a2
Pipeline
#71612
passed with stages
in 56 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
DrmSharerConfig.java
...e/yanxuan/wx/store/sharer/biz/config/DrmSharerConfig.java
+6
-0
No files found.
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/config/DrmSharerConfig.java
View file @
cbcfec7b
...
@@ -92,6 +92,7 @@ public class DrmSharerConfig {
...
@@ -92,6 +92,7 @@ public class DrmSharerConfig {
// 默认分佣比例
// 默认分佣比例
String
defaultCommissionratio
=
"application.commissionratio.default"
;
String
defaultCommissionratio
=
"application.commissionratio.default"
;
if
(
changeEvent
.
isChanged
(
defaultCommissionratio
))
{
if
(
changeEvent
.
isChanged
(
defaultCommissionratio
))
{
log
.
info
(
"ProductCommissionConfig:onChange, changeKey = {}"
,
defaultCommissionratio
);
ConfigChange
change
=
changeEvent
.
getChange
(
defaultCommissionratio
);
ConfigChange
change
=
changeEvent
.
getChange
(
defaultCommissionratio
);
defaultCommissionratioChange
(
change
);
defaultCommissionratioChange
(
change
);
}
}
...
@@ -99,6 +100,7 @@ public class DrmSharerConfig {
...
@@ -99,6 +100,7 @@ public class DrmSharerConfig {
// 用户分佣比例
// 用户分佣比例
String
sharerCommissionratio
=
"application.commissionratio.sharer"
;
String
sharerCommissionratio
=
"application.commissionratio.sharer"
;
if
(
changeEvent
.
isChanged
(
sharerCommissionratio
))
{
if
(
changeEvent
.
isChanged
(
sharerCommissionratio
))
{
log
.
info
(
"ProductCommissionConfig:onChange, changeKey = {}"
,
sharerCommissionratio
);
ConfigChange
change
=
changeEvent
.
getChange
(
sharerCommissionratio
);
ConfigChange
change
=
changeEvent
.
getChange
(
sharerCommissionratio
);
sharerCommissionRatioChange
(
change
);
sharerCommissionRatioChange
(
change
);
}
}
...
@@ -106,6 +108,7 @@ public class DrmSharerConfig {
...
@@ -106,6 +108,7 @@ public class DrmSharerConfig {
// 用户商品分佣比例
// 用户商品分佣比例
String
sharerproductCommissionratio
=
"application.commissionratio.sharerproduct"
;
String
sharerproductCommissionratio
=
"application.commissionratio.sharerproduct"
;
if
(
changeEvent
.
isChanged
(
sharerproductCommissionratio
))
{
if
(
changeEvent
.
isChanged
(
sharerproductCommissionratio
))
{
log
.
info
(
"ProductCommissionConfig:onChange, changeKey = {}"
,
sharerproductCommissionratio
);
ConfigChange
change
=
changeEvent
.
getChange
(
sharerproductCommissionratio
);
ConfigChange
change
=
changeEvent
.
getChange
(
sharerproductCommissionratio
);
sharerProductCommissionRatioChange
(
change
);
sharerProductCommissionRatioChange
(
change
);
}
}
...
@@ -115,6 +118,7 @@ public class DrmSharerConfig {
...
@@ -115,6 +118,7 @@ public class DrmSharerConfig {
* 默认分佣比例变更
* 默认分佣比例变更
*/
*/
private
void
defaultCommissionratioChange
(
ConfigChange
change
)
{
private
void
defaultCommissionratioChange
(
ConfigChange
change
)
{
log
.
info
(
"ProductCommissionConfig:defaultCommissionratioChange, change = {}"
,
JSON
.
toJSONString
(
change
));
if
(
StringUtils
.
isBlank
(
change
.
getNewValue
())
||
change
.
getNewValue
().
equals
(
change
.
getOldValue
()))
{
if
(
StringUtils
.
isBlank
(
change
.
getNewValue
())
||
change
.
getNewValue
().
equals
(
change
.
getOldValue
()))
{
return
;
return
;
}
}
...
@@ -166,6 +170,7 @@ public class DrmSharerConfig {
...
@@ -166,6 +170,7 @@ public class DrmSharerConfig {
* 用户分佣比例变更
* 用户分佣比例变更
*/
*/
private
void
sharerCommissionRatioChange
(
ConfigChange
change
)
{
private
void
sharerCommissionRatioChange
(
ConfigChange
change
)
{
log
.
info
(
"ProductCommissionConfig:sharerCommissionRatioChange, change = {}"
,
JSON
.
toJSONString
(
change
));
List
<
CommissionSharerBO
>
oldCommissionSharerList
=
JSON
.
parseArray
(
change
.
getOldValue
(),
CommissionSharerBO
.
class
);
List
<
CommissionSharerBO
>
oldCommissionSharerList
=
JSON
.
parseArray
(
change
.
getOldValue
(),
CommissionSharerBO
.
class
);
if
(
null
==
oldCommissionSharerList
)
{
if
(
null
==
oldCommissionSharerList
)
{
oldCommissionSharerList
=
new
ArrayList
<>();
oldCommissionSharerList
=
new
ArrayList
<>();
...
@@ -259,6 +264,7 @@ public class DrmSharerConfig {
...
@@ -259,6 +264,7 @@ public class DrmSharerConfig {
* 用户商品分佣比例变更
* 用户商品分佣比例变更
*/
*/
private
void
sharerProductCommissionRatioChange
(
ConfigChange
change
)
{
private
void
sharerProductCommissionRatioChange
(
ConfigChange
change
)
{
log
.
info
(
"ProductCommissionConfig:sharerProductCommissionRatioChange, change = {}"
,
JSON
.
toJSONString
(
change
));
List
<
CommissionSharerProductBO
>
oldCommissionSharerList
=
JSON
.
parseArray
(
change
.
getOldValue
(),
CommissionSharerProductBO
.
class
);
List
<
CommissionSharerProductBO
>
oldCommissionSharerList
=
JSON
.
parseArray
(
change
.
getOldValue
(),
CommissionSharerProductBO
.
class
);
if
(
null
==
oldCommissionSharerList
)
{
if
(
null
==
oldCommissionSharerList
)
{
oldCommissionSharerList
=
new
ArrayList
<>();
oldCommissionSharerList
=
new
ArrayList
<>();
...
...
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