| | |
| | | @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"; |
| | | |
| | | |
| | | /** |
| | |
| | | } |
| | | 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(); |
| | | } |
| | | } |