Commit d936e130 authored by renjie's avatar renjie

支付宝支付

parent e6afc34d
......@@ -27,6 +27,7 @@ import com.edgec.browserbackend.browser.domain.PayBack;
import com.edgec.browserbackend.browser.repository.PayBackRepository;
import com.edgec.browserbackend.common.commons.error.ClientRequestException;
import com.edgec.browserbackend.wxpay.*;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -92,6 +93,8 @@ public class PaymentServiceImpl implements PaymentService {
UserPaymentDto result = new UserPaymentDto();
result.setPaid(false);
if (StringUtils.isBlank(tradeno))
return result;
try {
UserPayment byTradeNo = userPaymentRepository.findByTradeNo(tradeno);
......@@ -229,6 +232,8 @@ public class PaymentServiceImpl implements PaymentService {
public UserPaymentDto aliCheckOrderStatus(String tradno, int chargeType) {
UserPaymentDto result = new UserPaymentDto();
result.setPaid(false);
if (StringUtils.isBlank(tradno))
return result;
try {
UserPayment byTradeNo = userPaymentRepository.findByTradeNo(tradno);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment