Pu Zhibing
2024-09-24 5636a3b962bc19c4e46e67646c74018037ee8792
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//package com.stylefeng.guns;
//
//import com.stylefeng.guns.modular.system.util.PayMoneyUtil;
//import com.stylefeng.guns.modular.system.util.ResultUtil;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.context.junit4.SpringRunner;
//
//import java.util.Map;
//
///**
// * @author zhibing.pu
// * @Date 2024/9/24 9:24
// */
//@RunWith(SpringRunner.class)
//@SpringBootTest
//public class GunsApplicationTest {
//
//    @Autowired
//    private PayMoneyUtil payMoneyUtil;
//
//
//    @Test
//    public void test(){
//        try {
//            ResultUtil<Map<String, Object>> resultUtil1 = payMoneyUtil.queryWXOrder("", "37551_1_74ed0", "JSAPI");
//            if (resultUtil1.getCode() == 200) {
//                /**
//                 * SUCCESS--支付成功
//                 * REFUND--转入退款
//                 * NOTPAY--未支付
//                 * CLOSED--已关闭
//                 * REVOKED--已撤销(刷卡支付)
//                 * USERPAYING--用户支付中
//                 * PAYERROR--支付失败(其他原因,如银行返回失败)
//                 * ACCEPT--已接收,等待扣款
//                 */
//                System.err.println(resultUtil1.getData());
//            }
//
////            payMoneyUtil.closeWXOrder("37551_1_74ed0");
//        } catch (Exception e) {
//            throw new RuntimeException(e);
//        }
//    }
//}