瀏覽代碼

退款接口修改

小么熊🐻 2 年之前
父節點
當前提交
4c76528221

+ 1 - 0
jsjp-admin/src/main/java/com/miaxis/app/controller/wx/WxNotifyController.java

@@ -345,6 +345,7 @@ public class WxNotifyController {
             OrderInfo orderInfo = orderInfoService.getByOutTradeNo(outTradeNo);
             try {
                 orderInfo.setOutRefundNo(refundRecord.getOutRefundNo());
+                orderInfo.setPayType(3);
                 orderInfoService.updateById(orderInfo);
             } catch (Exception e) {
                 e.printStackTrace();

+ 1 - 1
jsjp-admin/src/test/java/com/miaxis/test/NewGzptTest.java

@@ -81,7 +81,7 @@ public class NewGzptTest {
 
     @Test
     public void test5() throws Exception {
-        WxJsOrder wxJsOrder = wxJsOrderService.getByOutTradeNo("12022060714212752523480794758101");
+        WxJsOrder wxJsOrder = wxJsOrderService.getByOutTradeNo("12022060718161790123480791741559");
         refundRecordService.refund(wxJsOrder, OrderCodeFactory.getOrderCode(null), "测试退款111BBQ");
     }