import cn.hutool.http.HttpUtil; /** * * @param id 渠道码id * @return */ @GetMapping("/judge") @ApiOperation("判断扫二维码之后是否有效") @AutoLog("判断扫二维码之后是否有效") public Result<Object> judgeCodeEffective(String id){ String result = ""; // 小状元管理后端服务接口 String url = ""; HashMap<String, Object> paramMap = new HashMap<>(); paramMap.put("id", id); try { result= HttpUtil.get(url,paramMap); } catch (Exception e) { e.printStackTrace(); log.error("调用小状元管理后端检查二维码状态网络异常:{}",e.getMessage()); log.info("调用小状元管理后端检查二维码状态网络异常,异常信息:{}",e.getMessage()); return Result.error("请求失败"); } return Result.OK(result); }
调用其他人的接口返回状态
最新推荐文章于 2024-05-06 18:00:52 发布