From ddba15cfd1d654dc41de5dfdc587e12d96d84f4f Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期一, 04 八月 2025 17:44:54 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/QianYunTong

---
 DriverQYTTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java |   40 +++++++++++++++++++++++++++++++++-------
 1 files changed, 33 insertions(+), 7 deletions(-)

diff --git a/DriverQYTTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java b/DriverQYTTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java
index 0251a97..66223bd 100644
--- a/DriverQYTTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java
+++ b/DriverQYTTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java
@@ -1,22 +1,48 @@
 //package com.stylefeng.guns;
 //
-//import com.stylefeng.guns.modular.smallLogistics.server.IOrderLogisticsService;
+//import com.stylefeng.guns.modular.system.model.Driver;
+//import com.stylefeng.guns.modular.system.service.IDriverService;
+//import com.stylefeng.guns.modular.system.util.zhenglian.TokenUtil;
+//import com.stylefeng.guns.modular.system.util.zhenglian.model.TokenRequest;
+//import com.stylefeng.guns.modular.system.util.zhenglian.model.TradeTerminalInfo;
 //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.mongodb.core.MongoTemplate;
 //import org.springframework.test.context.junit4.SpringRunner;
 //
 //@RunWith(SpringRunner.class)
 //@SpringBootTest
 //public class GunsApplicationTest {
 //
-//    @Autowired
-//    private IOrderLogisticsService orderLogisticsService;
+//	@Autowired
+//	private MongoTemplate mongoTemplate;
+//	@Autowired
+//	private IDriverService driverService;
 //
 //
-//    @Test
-//    public void queryVipLevelList() throws Exception {
-//        orderLogisticsService.process(434, 6, 104.0560028754, 30.5855897352, "四川省成都市武侯区石羊街道天府新谷成都高新技术产业开发区(南区)", "");
-//    }
+//	@Test
+//	public void test() {
+//
+//		Driver driver = driverService.selectById(driverId);
+//		TokenRequest tokenRequest = new TokenRequest();
+//		tokenRequest.setAppUserId(driver.getEmpId().toString());
+//		tokenRequest.setUserName(driver.getName());
+//		tokenRequest.setCertNo(driver.getIdCard());
+//		tokenRequest.setPhone(driver.getPhone());
+//		TradeTerminalInfo tradeTerminalInfo = new TradeTerminalInfo();
+//		tradeTerminalInfo.setIp("127.0.0.1");
+//		tradeTerminalInfo.setTerminal("1");
+//		tradeTerminalInfo.setMac("");
+//		tokenRequest.setTradeTerminalInfo(tradeTerminalInfo);
+//		tokenRequest.setType(type);
+//		String token = null;
+//		try {
+//			token = TokenUtil.getToken(tokenRequest);
+//		} catch (Exception e) {
+//			throw new RuntimeException(e);
+//		}
+//		System.err.println(token);
+//	}
 //}

--
Gitblit v1.7.1