From 0b4272657073faf38fc41e6f83518bd3d9ada276 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期二, 14 十月 2025 11:59:33 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/QYTDriving

---
 user/guns-admin/src/main/java/com/supersavedriving/user/modular/system/util/AppUserUtil.java |   52 ++++++++--------------------------------------------
 1 files changed, 8 insertions(+), 44 deletions(-)

diff --git a/user/guns-admin/src/main/java/com/supersavedriving/user/modular/system/util/AppUserUtil.java b/user/guns-admin/src/main/java/com/supersavedriving/user/modular/system/util/AppUserUtil.java
index 8520ae6..defb32b 100644
--- a/user/guns-admin/src/main/java/com/supersavedriving/user/modular/system/util/AppUserUtil.java
+++ b/user/guns-admin/src/main/java/com/supersavedriving/user/modular/system/util/AppUserUtil.java
@@ -3,6 +3,7 @@
 import cn.hutool.http.HttpRequest;
 import cn.hutool.http.HttpResponse;
 import cn.hutool.http.HttpUtil;
+import com.supersavedriving.user.config.QYTConfig;
 import lombok.extern.slf4j.Slf4j;
 
 /**
@@ -12,47 +13,9 @@
  */
 @Slf4j
 public class AppUserUtil {
-	
-	private static String url = "http://192.168.110.85:5000/user-server";
-	
-	
-	/**
-	 * 发送短信验证码
-	 * @param phone
-	 * @return
-	 * @throws Exception
-	 */
-	public static String queryCaptcha(String phone) throws Exception{
-		HttpRequest post = HttpUtil.createPost(url + "/base/queryCaptcha");
-		post.form("phone", phone);
-		HttpResponse execute = post.execute();
-		if(200 != execute.getStatus()){
-			log.error("打车系统-发送验证码失败:{}", execute.body());
-			return null;
-		}
-		return execute.body();
-	}
-	
-	/**
-	 * 验证短信验证码
-	 * @param phone
-	 * @param code
-	 * @return
-	 * @throws Exception
-	 */
-	public static Boolean checkCaptcha(String phone, String code) throws Exception{
-		HttpRequest post = HttpUtil.createPost(url + "/base/user/checkCaptcha");
-		post.header("device", "driving");
-		post.form("phone", phone);
-		post.form("code", code);
-		HttpResponse execute = post.execute();
-		if(200 != execute.getStatus()){
-			log.error("打车系统-验证短信验证码:{}", execute.body());
-			return null;
-		}
-		return Boolean.valueOf(execute.body());
-	}
-	
+
+	private static QYTConfig qytConfig = SpringContextsUtil.getBean(QYTConfig.class);
+
 	
 	/**
 	 * 添加用户
@@ -60,11 +23,12 @@
 	 * @return
 	 * @throws Exception
 	 */
-	public static String addUser(String phone, String code, String areaCode) throws Exception{
-		HttpRequest post = HttpUtil.createPost(url + "/base/user/addAppUser");
+	public static String addUser(String phone, String code, String areaCode, String onconUUID) throws Exception{
+		HttpRequest post = HttpUtil.createPost(qytConfig.getChuxingUrl() + "/user-server/base/user/addAppUser");
 		post.form("phone", phone);
 		post.form("code", code);
 		post.form("areaCode", areaCode);
+		post.form("onconUUID", onconUUID);
 		HttpResponse execute = post.execute();
 		if(200 != execute.getStatus()){
 			log.error("打车系统-注册用户失败:{}", execute.body());
@@ -82,7 +46,7 @@
 	 * @throws Exception
 	 */
 	public static String getUserPhone(Integer id) throws Exception{
-		HttpRequest post = HttpUtil.createGet(url + "/base/user/getUserPhone/" + id);
+		HttpRequest post = HttpUtil.createGet(qytConfig.getChuxingUrl() + "/user-server/base/user/getUserPhone/" + id);
 		HttpResponse execute = post.execute();
 		if(200 != execute.getStatus()){
 			log.error("打车系统-查询用户失败:{}", execute.body());

--
Gitblit v1.7.1