/**
  * 是否是手机和平板
  *
  * @param request
  * @return
  */
 public static boolean isMobileOrTablet(HttpServletRequest request) {
   DeviceType deviceType = getDeviceType(request);
   return DeviceType.MOBILE.equals(deviceType) || DeviceType.TABLET.equals(deviceType);
 }
 /**
  * 是否是手机
  *
  * @param request
  * @return
  */
 public static boolean isMobile(HttpServletRequest request) {
   return DeviceType.MOBILE.equals(getDeviceType(request));
 }