@RequestMapping("/getDeviceInfo")public AjaxResult getDeviceInfo(@RequestHeader(value = "User-Agent") String userAgent) {System.out.println(userAgent);if (userAgent.contains("iPhone")) {return AjaxResult.success("生成成功", "iPhone");} else if (userAgent.contains("Android")) {return AjaxResult.success("生成成功", "Android");} else if (userAgent.contains("Windows")) {return AjaxResult.success("生成成功", "windows");}return AjaxResult.success("生成成功", "其他");}