| | |
| | | #正式环境 |
| | | #callbackPath: https://okyueche.com:443/dispatch |
| | | #正式测试环境 |
| | | callbackPath: http://140.210.205.34:5000/dispatch |
| | | callbackPath: https://tianma.65xj.com/dispatch |
| | | |
| | | |
| | | #交通部推送数据功能开关 |
| | |
| | | #正式环境 |
| | | #callbackPath: https://okyueche.com:443/driver |
| | | #正式测试环境 |
| | | callbackPath: http://140.210.205.34:5000/driver |
| | | callbackPath: https://tianma.65xj.com/driver |
| | | |
| | | #交通部推送数据功能开关 |
| | | pushMinistryOfTransport: false |
| | |
| | | a.headImgUrl as avatar, |
| | | a.phone as phone, |
| | | c.carLicensePlate as carCode, |
| | | CONCAT(F.`name`, d.`name`, '.', c.carColor) as carName, |
| | | CONCAT(f.`name`, d.`name`, '.', c.carColor) as carName, |
| | | (select sum(fraction) / count(id) from t_order_evaluate where driverId = a.id) as score, |
| | | ( |
| | | (select count(id) from t_order_private_car where state in (7, 8, 9) and driverId = a.id) + |
| | |
| | | import javax.crypto.SecretKeyFactory; |
| | | import javax.crypto.spec.IvParameterSpec; |
| | | import javax.crypto.spec.SecretKeySpec; |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.security.NoSuchAlgorithmException; |
| | | import java.security.SecureRandom; |
| | | import java.security.spec.InvalidKeySpecException; |
| | |
| | | |
| | | |
| | | public static void main(String[] ages){ |
| | | // String encrypt = AESUtil.encrypt("19167181339"); |
| | | // String encrypt = AESUtil.encrypt("18398968484"); |
| | | // System.err.println(encrypt); |
| | | String encrypt = AESUtil.encrypt("VM0S5boDnJqBFZUxn4X6Vw=="); |
| | | System.err.println(encrypt); |
| | | // String travel = AESUtil.decrypt("wRhQ5gEAAAEQAAAAAAAAAA=="); |
| | | // System.err.println(travel); |
| | | // String encrypt = AESUtil.encrypt("7tQOnSXCstqyFQRvSSMdwQ=="); |
| | | // System.err.println(encrypt); |
| | | String travel = AESUtil.decrypt("7tQOnSXCstqyFQRvSSMdwQ=="); |
| | | System.err.println(travel); |
| | | } |
| | | } |
| | |
| | | * 1.下了即时单就不能下预约单和即时单 |
| | | * 2.下了预约单和再下一张即时单不能再下预约单 |
| | | */ |
| | | List<OrderTaxi> list = orderTaxiMapper.queryByState_(uid, 1, 1, 1, 2, 3, 4, 5, 6, 11); |
| | | List<OrderTaxi> list = orderTaxiMapper.queryByState_(uid, 1, 1, 1, 2, 3, 4, 5, 6,7, 11); |
| | | if(list.size() > 0){ |
| | | return ResultUtil.error("有未完成的订单"); |
| | | } |
| | |
| | | return ResultUtil.error("有未完成的订单"); |
| | | } |
| | | |
| | | list = orderTaxiMapper.queryByState_(uid, 2, 1, 1, 2, 3, 4, 5, 6, 11); |
| | | list = orderTaxiMapper.queryByState_(uid, 2, 1, 1, 2, 3, 4, 5, 6,7, 11); |
| | | if(list.size() > 0 && orderTaxi.getOrderType() == 2){ |
| | | return ResultUtil.error("有未完成的订单"); |
| | | } |
| | |
| | | #正式环境 |
| | | #callbackPath: https://okyueche.com:443/user |
| | | #测试环境 |
| | | callbackPath: http://140.210.205.34:5000/user |
| | | callbackPath: https://tianma.65xj.com/user |
| | | |
| | | #交通部推送数据功能开关 |
| | | pushMinistryOfTransport: false |
| | |
| | | # Redis·þÎñÆ÷µØÖ· |
| | | spring.redis.host=127.0.0.1 |
| | | # Redis·þÎñÆ÷Á¬½Ó¶Ë¿Ú |
| | | #spring.redis.port=16379 |
| | | #spring.redis.port=6379 |
| | | spring.redis.port=10064 |
| | | # Redis·þÎñÆ÷Á¬½ÓÃÜÂ루ĬÈÏΪ¿Õ£© |
| | | spring.redis.password=TianMa_2023! |
| | |
| | | jedisPoolConfig.setBlockWhenExhausted(blockWhenExhausted); |
| | | // 是否启用pool的jmx管理功能, 默认true |
| | | jedisPoolConfig.setJmxEnabled(true); |
| | | JedisPool jedisPool = new JedisPool(jedisPoolConfig, host, port, timeout); |
| | | JedisPool jedisPool = new JedisPool(jedisPoolConfig, host, port, timeout, password); |
| | | return jedisPool; |
| | | } |
| | | } |