| | |
| | | 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("GH-MTN-B2C", "+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.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 TinggPayoutUtil tinggPayoutUtil; |
| | | // |
| | | // @Autowired |
| | | // private SMSUtil smsUtil; |
| | | // |
| | | // |
| | | // @Test |
| | | // public void test(){ |
| | | // smsUtil.sendCellulantMessage("233203716998", "您的验证码为:123456,该验证码5分钟内有效,请勿泄漏于他人!"); |
| | | // } |
| | | //} |