From c3b7673c16d026e57f8759b4cee99a42bf3c57f2 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期三, 24 九月 2025 09:15:44 +0800
Subject: [PATCH] 修改bug

---
 UserZYTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java |   42 +++++++++++++++++++-----------------------
 1 files changed, 19 insertions(+), 23 deletions(-)

diff --git a/UserZYTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java b/UserZYTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java
index 2bf3187..df95ef0 100644
--- a/UserZYTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java
+++ b/UserZYTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java
@@ -1,37 +1,33 @@
 //package com.stylefeng.guns;
 //
-//import com.stylefeng.guns.modular.specialTrain.server.IOrderPrivateCarService;
-//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.test.context.junit4.SpringRunner;
 //
-//import java.util.Map;
+//import javax.annotation.Resource;
 //
-///**
-// * @author zhibing.pu
-// * @Date 2024/9/24 9:24
-// */
+//
 //@RunWith(SpringRunner.class)
 //@SpringBootTest
 //public class GunsApplicationTest {
 //
-//	@Autowired
-//	private PayMoneyUtil payMoneyUtil;
+//    @Resource
+//    private RedisUtil redisUtil;
 //
-//	@Autowired
-//	private IOrderPrivateCarService orderPrivateCarService;
-//
-//
-//	@Test
-//	public void test(){
-//		try {
-//			orderPrivateCarService.payPrivateCarOrder(1, 37630, null, 1);
-//		} catch (Exception e) {
-//			throw new RuntimeException(e);
-//		}
-//	}
+//    @Test
+//    public void test(){
+//        boolean lock = redisUtil.lock("key_test", 10, 30);
+//        if(lock){
+//            System.err.println("-----------------");
+//        }
+////        redisUtil.unlock("key_test");
+//        lock = redisUtil.lock("key_test", 10, 30);
+//        if(lock){
+//            System.err.println("!!!!!!!!!!!!!!!!!!!!");
+//            return;
+//        }
+//        System.err.println("*****************");
+//    }
 //}

--
Gitblit v1.7.1