| | |
| | | package com.stylefeng.guns; |
| | | |
| | | import com.stylefeng.guns.modular.system.util.Tingg.TinggPayoutUtil; |
| | | 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; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | | * @date 2023/3/17 11:27 |
| | | */ |
| | | @RunWith(SpringRunner.class) |
| | | @SpringBootTest |
| | | public class TestGunsApplication { |
| | | |
| | | @Autowired |
| | | private TinggPayoutUtil tinggPayoutUtil; |
| | | |
| | | |
| | | @Test |
| | | public void test(){ |
| | | tinggPayoutUtil.sendPayout("+233277211131", "00007", 1D, "https://10pz685243.zicp.fun/base/IGO/tinggPayoutCallback", "Transfer remittance"); |
| | | } |
| | | } |
| | | //package com.stylefeng.guns; |
| | | // |
| | | //import com.alibaba.fastjson.JSON; |
| | | //import com.stylefeng.guns.modular.specialTrain.server.IOrderPrivateCarService; |
| | | //import com.stylefeng.guns.modular.system.util.SMSUtil; |
| | | //import com.stylefeng.guns.modular.system.util.Tingg.TinggPayoutUtil; |
| | | //import com.stylefeng.guns.modular.system.util.Tingg.model.PayoutResponse; |
| | | //import com.twilio.Twilio; |
| | | //import com.twilio.http.TwilioRestClient; |
| | | //import com.twilio.rest.api.v2010.Account; |
| | | //import com.twilio.rest.api.v2010.account.Message; |
| | | //import com.twilio.type.PhoneNumber; |
| | | //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; |
| | | // |
| | | ///** |
| | | // * @author zhibing.pu |
| | | // * @date 2023/3/17 11:27 |
| | | // */ |
| | | //@RunWith(SpringRunner.class) |
| | | //@SpringBootTest |
| | | //public class TestGunsApplication { |
| | | // |
| | | // @Autowired |
| | | // private IOrderPrivateCarService orderPrivateCarService; |
| | | // |
| | | // |
| | | // @Test |
| | | // public void test(){ |
| | | // try { |
| | | // orderPrivateCarService.payPrivateCarOrder(1, null, 13083, null, null, 1, 1); |
| | | // } catch (Exception e) { |
| | | // throw new RuntimeException(e); |
| | | // } |
| | | // } |
| | | //} |