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
d936e130
Commit
d936e130
authored
Apr 08, 2020
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付宝支付
parent
e6afc34d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
PaymentServiceImpl.java
...owserbackend/account/service/impl/PaymentServiceImpl.java
+5
-0
No files found.
src/main/java/com/edgec/browserbackend/account/service/impl/PaymentServiceImpl.java
View file @
d936e130
...
@@ -27,6 +27,7 @@ import com.edgec.browserbackend.browser.domain.PayBack;
...
@@ -27,6 +27,7 @@ import com.edgec.browserbackend.browser.domain.PayBack;
import
com.edgec.browserbackend.browser.repository.PayBackRepository
;
import
com.edgec.browserbackend.browser.repository.PayBackRepository
;
import
com.edgec.browserbackend.common.commons.error.ClientRequestException
;
import
com.edgec.browserbackend.common.commons.error.ClientRequestException
;
import
com.edgec.browserbackend.wxpay.*
;
import
com.edgec.browserbackend.wxpay.*
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -92,6 +93,8 @@ public class PaymentServiceImpl implements PaymentService {
...
@@ -92,6 +93,8 @@ public class PaymentServiceImpl implements PaymentService {
UserPaymentDto
result
=
new
UserPaymentDto
();
UserPaymentDto
result
=
new
UserPaymentDto
();
result
.
setPaid
(
false
);
result
.
setPaid
(
false
);
if
(
StringUtils
.
isBlank
(
tradeno
))
return
result
;
try
{
try
{
UserPayment
byTradeNo
=
userPaymentRepository
.
findByTradeNo
(
tradeno
);
UserPayment
byTradeNo
=
userPaymentRepository
.
findByTradeNo
(
tradeno
);
...
@@ -229,6 +232,8 @@ public class PaymentServiceImpl implements PaymentService {
...
@@ -229,6 +232,8 @@ public class PaymentServiceImpl implements PaymentService {
public
UserPaymentDto
aliCheckOrderStatus
(
String
tradno
,
int
chargeType
)
{
public
UserPaymentDto
aliCheckOrderStatus
(
String
tradno
,
int
chargeType
)
{
UserPaymentDto
result
=
new
UserPaymentDto
();
UserPaymentDto
result
=
new
UserPaymentDto
();
result
.
setPaid
(
false
);
result
.
setPaid
(
false
);
if
(
StringUtils
.
isBlank
(
tradno
))
return
result
;
try
{
try
{
UserPayment
byTradeNo
=
userPaymentRepository
.
findByTradeNo
(
tradno
);
UserPayment
byTradeNo
=
userPaymentRepository
.
findByTradeNo
(
tradno
);
...
...
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