xuhy
2023-08-11 1172de622b5e615677918d4fa0f02a9b2766171c
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
//package com.stylefeng.guns;
//
//import com.alibaba.fastjson.JSON;
//import com.stylefeng.guns.core.util.ToolUtil;
//import com.stylefeng.guns.modular.system.service.IUserInfoService;
//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.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.context.junit4.SpringRunner;
//
//import java.text.SimpleDateFormat;
//import java.util.Date;
//
//@RunWith(SpringRunner.class)
//@SpringBootTest
//public class GunsApplicationTest {
//
//    Logger logger = LoggerFactory.getLogger(GunsApplicationTest.class);
//
//    @Autowired
//    private PayMoneyUtil payMoneyUtil;
//
//    @Autowired
//    private IUserInfoService userInfoService;
//
//
//    @Test
//    public void test(){
//        try {
//            SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");
//            String out_trade_no = sdf.format(new Date()) + 1 + "123";
//
//            String appletsOpenId = "";
//            String tradeType = "APP";
//            ResultUtil resultUtil = userInfoService.depositBalance(1, 0.01, 183, 1);
//            logger.error(JSON.toJSONString(resultUtil));
//        }catch (Exception e){
//            e.printStackTrace();
//        }
//    }
//}