Pu Zhibing
4 天以前 4c4dc127cdc9c41f2bfb3c138108529856e031b8
user/guns-admin/src/main/java/com/supersavedriving/user/modular/system/util/AppUserUtil.java
@@ -13,7 +13,7 @@
@Slf4j
public class AppUserUtil {
   
   private static String url = "http://127.0.0.1:8080/user-server";
   private static String url = "http://221.182.45.100:5000/user-server";
   
   
   /**
@@ -72,4 +72,22 @@
      }
      return execute.body();
   }
   /**
    * 通过
    * @param id
    * @return
    * @throws Exception
    */
   public static String getUserPhone(Integer id) throws Exception{
      HttpRequest post = HttpUtil.createGet(url + "/base/user/getUserPhone/" + id);
      HttpResponse execute = post.execute();
      if(200 != execute.getStatus()){
         log.error("打车系统-查询用户失败:{}", execute.body());
         return null;
      }
      return execute.body();
   }
}