//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();
|
// }
|
// }
|
//}
|