|
|
@@ -13,47 +13,26 @@ public class PayOrderTest extends ApplicationTests {
|
|
|
|
|
|
@Test
|
|
|
public void refund() {
|
|
|
- for (int orderId : new int[]{
|
|
|
- 7587002,
|
|
|
- 7587102,
|
|
|
- 7587101,
|
|
|
- 7587577,
|
|
|
- 7587001,
|
|
|
- 7587100,
|
|
|
- 7587000,
|
|
|
- 7587574,
|
|
|
- 7586999,
|
|
|
- 7587573,
|
|
|
- 7586998,
|
|
|
- 7586997,
|
|
|
- 7587571,
|
|
|
- 7587569,
|
|
|
- 7587570,
|
|
|
- 7587568,
|
|
|
- 7586996,
|
|
|
- 7586995,
|
|
|
- 7586993,
|
|
|
- 7587567,
|
|
|
- 7586916,
|
|
|
- 7587096,
|
|
|
- 7586915,
|
|
|
- 7586992,
|
|
|
- 7587094,
|
|
|
- 7587091,
|
|
|
- 7587093,
|
|
|
- 7587090,
|
|
|
- 7586991,
|
|
|
- 7586914,
|
|
|
- 7586913,
|
|
|
- 7587089,
|
|
|
- 7586990,
|
|
|
- 7587088,
|
|
|
- 7586989
|
|
|
- }) {
|
|
|
- PayQuery query = orderPayService.query(orderId + "");
|
|
|
- if (query.isExist()) {
|
|
|
- orderPayService.refund(orderId + "", query.getTransactionId(), query.getAmount(), query.getChannel());
|
|
|
- }
|
|
|
+ for (String s : new String[]{"NUPAC20220602004158600000000000000088878",
|
|
|
+ "NUPAC20220602004178600000000000000089288",
|
|
|
+ "NUPAC20220602004199100000000000000089197",
|
|
|
+ "NUPAC20220602004125400000000000000090478",
|
|
|
+ "NUPAC20220602004178800000000000000091749",
|
|
|
+ "NUPAC20220602004183300000000000000093060",
|
|
|
+ "NUPAC20220602004131100000000000000094001",
|
|
|
+ "NUPAC20220602004114100000000000000093751",
|
|
|
+ "NUPAC20220602004195800000000000000094095",
|
|
|
+ "NUPAC20220602004166600000000000000095053",
|
|
|
+ "NUPAC20220602004171300000000000000094667",
|
|
|
+ "NUPAC20220602004155000000000000000095478",
|
|
|
+ "NUPAC20220602004198300000000000000096828",
|
|
|
+ "NUPAC20220602004128500000000000000098532",
|
|
|
+ "NUPAC20220602004129100000000000000099890",
|
|
|
+ "NUPAC20220602004113200000000000000099680",
|
|
|
+ "NUPAC20220602004170100000000000000100350"}) {
|
|
|
+ PayQuery q = orderPayService.query(s, Constants.PayChannel.SAND);
|
|
|
+ orderPayService.refund(q.getOrderId(), q.getTransactionId(), q.getAmount(), q.getChannel());
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}
|