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