whyclxw
2025-03-21 319d732f12a54e91079b843f83824a0274b7b5f7
src/main/java/com/whyc/util/ActionUtil.java
@@ -28,14 +28,18 @@
   public static SimpleDateFormat sdfwithOutday = new SimpleDateFormat("yyyy_MM");
   public static SimpleDateFormat sdfwithday = new SimpleDateFormat("yyyy-MM-dd");
   public static SimpleDateFormat sdfwithFTP = new SimpleDateFormat("yyyy_MM_dd_HH_mm_ss");
   public static SimpleDateFormat sdfwithALL = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
   /*
    * 获取HttpServletRequest
    */
   public static HttpServletRequest getRequest(){
      ServletRequestAttributes requestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
      HttpServletRequest request = requestAttributes.getRequest();
      return request;
      if(requestAttributes!=null) {
         HttpServletRequest request = requestAttributes.getRequest();
         return request;
      }else{
         return null;
      }
   }
   
   /*
@@ -86,7 +90,7 @@
      msg = sdf.format(time);
      return msg;
   }
   
   /**
    *