Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
browser-backend
Project
Project
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
Administrator
browser-backend
Commits
72bac31d
Commit
72bac31d
authored
Mar 18, 2020
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
充值bug
parent
ad46b411
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
PaymentServiceImpl.java
...owserbackend/account/service/impl/PaymentServiceImpl.java
+12
-1
No files found.
src/main/java/com/edgec/browserbackend/account/service/impl/PaymentServiceImpl.java
View file @
72bac31d
...
@@ -169,6 +169,17 @@ public class PaymentServiceImpl implements PaymentService {
...
@@ -169,6 +169,17 @@ public class PaymentServiceImpl implements PaymentService {
userPrePaidBillingRepository
.
save
(
bill
);
userPrePaidBillingRepository
.
save
(
bill
);
if
(
more
!=
20
&&
more
!=
45
&&
more
!=
125
&&
more
!=
300
)
more
=
0
;
if
((
more
==
20
&&
byTradeNo
.
getAmount
()
!=
100
)
||
(
more
!=
20
&&
byTradeNo
.
getAmount
()
==
100
))
more
=
0
;
if
((
more
==
45
&&
byTradeNo
.
getAmount
()
!=
200
)
||
(
more
!=
45
&&
byTradeNo
.
getAmount
()
==
200
))
more
=
0
;
if
((
more
==
125
&&
byTradeNo
.
getAmount
()
!=
500
)
||
(
more
!=
125
&&
byTradeNo
.
getAmount
()
==
500
))
more
=
0
;
if
((
more
==
300
&&
byTradeNo
.
getAmount
()
!=
1000
)
||
(
more
!=
300
&&
byTradeNo
.
getAmount
()
==
1000
))
more
=
0
;
balance
.
setBalanced
(
balance
.
getBalanced
()
+
byTradeNo
.
getAmount
()
+
more
);
balance
.
setBalanced
(
balance
.
getBalanced
()
+
byTradeNo
.
getAmount
()
+
more
);
userBalanceRepository
.
save
(
balance
);
userBalanceRepository
.
save
(
balance
);
}
}
...
@@ -272,7 +283,7 @@ public class PaymentServiceImpl implements PaymentService {
...
@@ -272,7 +283,7 @@ public class PaymentServiceImpl implements PaymentService {
bill
.
setMonth
(
monthValue
);
bill
.
setMonth
(
monthValue
);
if
(
more
!=
20
||
more
!=
45
||
more
!=
125
||
more
!=
300
)
if
(
more
!=
20
&&
more
!=
45
&&
more
!=
125
&&
more
!=
300
)
more
=
0
;
more
=
0
;
if
((
more
==
20
&&
byTradeNo
.
getAmount
()
!=
100
)
||
(
more
!=
20
&&
byTradeNo
.
getAmount
()
==
100
))
if
((
more
==
20
&&
byTradeNo
.
getAmount
()
!=
100
)
||
(
more
!=
20
&&
byTradeNo
.
getAmount
()
==
100
))
more
=
0
;
more
=
0
;
...
...
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