|
@@ -147,6 +147,9 @@ public class FsStorePaymentController extends BaseController
|
|
|
public R returnPayStatus(@RequestBody FsStorePayment fsStorePayment) throws Exception
|
|
|
{
|
|
|
FsStorePayment payment= fsStorePaymentService.selectFsStorePaymentByTradeNo(fsStorePayment.getTradeNo());
|
|
|
+ if(payment == null) {
|
|
|
+ throw new IllegalArgumentException("该付款记录没有查询到!");
|
|
|
+ }
|
|
|
String payMode = payment.getPayMode();
|
|
|
logger.info("手动查询"+payment);
|
|
|
if (payMode.equals("hf")){
|
|
@@ -235,6 +238,7 @@ public class FsStorePaymentController extends BaseController
|
|
|
|
|
|
orderService.payConfirm(1, fsStoreOrder.getId(), payment.getPayCode(),
|
|
|
payment.getTradeNo(),body.getChlTrxId(),payment.getTradeNo());
|
|
|
+ return R.ok();
|
|
|
}
|
|
|
|
|
|
return R.error("请检查外部订单号");
|