Эх сурвалжийг харах

配合前端查询bug,暂时注释掉catch捕获

ldz 3 сар өмнө
parent
commit
c6f67b68b4

+ 2 - 1
alien-lawyer/src/main/java/shop/alien/lawyer/payment/impl/AlipayPaymentStrategyImpl.java

@@ -257,7 +257,8 @@ public class AlipayPaymentStrategyImpl implements PaymentStrategy {
             }
         } catch (AlipayApiException e) {
             log.error("支付宝订单查询异常", e);
-            return R.fail("查询异常:" + e.getMessage());
+//            return R.fail("查询异常:" + e.getMessage());
+            return null ;
         }
 
     }

+ 2 - 1
alien-lawyer/src/main/java/shop/alien/lawyer/payment/impl/WeChatPaymentStrategyImpl.java

@@ -278,7 +278,8 @@ public class WeChatPaymentStrategyImpl implements PaymentStrategy {
             return R.data(response);
         } catch (WXPayUtility.ApiException e) {
             log.error("查询微信支付订单状态失败,状态码:{},错误信息:{}", e.getErrorCode(), e.getMessage());
-            return R.fail(e.getMessage());
+//            return R.fail(e.getMessage());
+            return null;
         }
     }