<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # 組件源碼 /** * <b>方法描述:</b> 文件是否超出限制 <br/> * <b>創建者:</b> admin <br/> * <b>創建時間:</b> 2019-06-14 11:08:19 <br/> * * @param files * 入參|文件字節|{@link Object} * @param limit * 入參|限制|{@link int} * @return 0 失敗<br/> * 1 成功<br/> */ @Component(label = "文件是否超出限制(文件名)", style = "判斷型", type = "同步組件", version = "1.0.0", deprecated = false, author = "admin", date = "2019-06-14 11:08:19") @InParams(param = { @Param(name = "files", comment = "文件字節", type = String.class), @Param(name = "limit", comment = "限制", type = int.class) }) @Returns(returns = { @Return(id = "0", desp = "失敗"), @Return(id = "1", desp = "成功") }) public static ResultBase A_checkFileSizeFilePath(String filepath, int limit) { try { File f = new File(filepath); if (!f.exists()) return ResultBase.newFailureResult("999", "文件不存在。"); long len = f.length(); double fs = (double) len / 1048576; if (fs <= limit) return ResultBase.newSuccessResult(); else return ResultBase.newFailureResult("999", "待轉化文件超出現在大小,文件:[" + fs + "M],限制:[" + limit + "M]"); } catch (Exception e) { AppLog.error(e); return ResultBase.newFailureResult("999", "判斷待轉換文件異常。" + AppLog.errorMsg(e)); } } 交易中組件使用方式: ![](https://img.kancloud.cn/91/25/912519481a73096c363d0d1559672a47_950x750.jpg) ## 參數說明及示例 文件字節:文件名全路徑二進制數組,示例: `__INNER__["filename"]` 限制:文件大小限制,單位為M(兆),示例: `17` > 根據文件全路徑判斷文件大小是否超出最大大小限制
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看