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
db360078
Commit
db360078
authored
May 06, 2020
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提现bug
parent
a0405b6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
PaymentServiceImpl.java
...owserbackend/account/service/impl/PaymentServiceImpl.java
+3
-1
No files found.
src/main/java/com/edgec/browserbackend/account/service/impl/PaymentServiceImpl.java
View file @
db360078
...
...
@@ -35,6 +35,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.stereotype.Service
;
import
javax.swing.text.Document
;
import
java.text.SimpleDateFormat
;
import
java.time.Instant
;
import
java.time.YearMonth
;
...
...
@@ -591,6 +592,7 @@ public class PaymentServiceImpl implements PaymentService {
@Override
public
boolean
alipayWithdraw
(
String
username
,
String
account
,
String
realName
,
double
amount
)
{
java
.
text
.
DecimalFormat
df
=
new
java
.
text
.
DecimalFormat
(
"#.00"
);
Account
byName
=
accountService
.
findByName
(
username
);
if
(
byName
==
null
)
throw
new
ClientRequestException
(
AccountErrorCode
.
NAMENOTEXIST
,
"account does not exist: "
+
username
);
...
...
@@ -619,7 +621,7 @@ public class PaymentServiceImpl implements PaymentService {
AlipayFundTransToaccountTransferRequest
alipayRequest
=
new
AlipayFundTransToaccountTransferRequest
();
String
out_biz_no
=
internalOrder
.
getTradeNo
();
String
trans_amount
=
""
+
amount
+
".00"
;
String
trans_amount
=
""
+
df
.
format
(
amount
)
;
String
identity_type
=
"ALIPAY_LOGONID"
;
String
subject
=
"礼金提现"
+
out_biz_no
;
...
...
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