| | |
| | | //package com.stylefeng.guns; |
| | | // |
| | | //import com.stylefeng.guns.modular.system.util.PayMoneyUtil; |
| | | //import com.stylefeng.guns.modular.system.util.ResultUtil; |
| | | //import com.stylefeng.guns.modular.system.util.RedisUtil; |
| | | //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.data.geo.GeoResult; |
| | | //import org.springframework.data.redis.connection.RedisGeoCommands; |
| | | //import org.springframework.test.context.junit4.SpringRunner; |
| | | // |
| | | //import java.util.Map; |
| | | //import java.util.List; |
| | | // |
| | | ///** |
| | | // * @author zhibing.pu |
| | | // * @Date 2024/9/24 9:24 |
| | | // */ |
| | |
| | | //public class GunsApplicationTest { |
| | | // |
| | | // @Autowired |
| | | // private PayMoneyUtil payMoneyUtil; |
| | | // private RedisUtil redisUtil; |
| | | // |
| | | // |
| | | // @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); |
| | | // } |
| | | // List<GeoResult<RedisGeoCommands.GeoLocation<String>>> driverPosition = redisUtil.getNearGeo("DRIVER_POSITION", 104.5615D, 30.456275D, 50000D); |
| | | // System.err.println(driverPosition); |
| | | // } |
| | | //} |