From d9fe4b6ff40a964c895a452ea12a04a13a979ec4 Mon Sep 17 00:00:00 2001
From: chenjiahe <763432473@qq.com>
Date: 星期一, 04 十二月 2023 18:26:10 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/main/java/com/hx/mp/util/CorpMpSpaceUtil.java |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/hx/mp/util/CorpMpSpaceUtil.java b/src/main/java/com/hx/mp/util/CorpMpSpaceUtil.java
index da9f8cf..22bb5c9 100644
--- a/src/main/java/com/hx/mp/util/CorpMpSpaceUtil.java
+++ b/src/main/java/com/hx/mp/util/CorpMpSpaceUtil.java
@@ -185,6 +185,7 @@
         {
             arr.add(sha);
         }
+        param.put("block_sha", arr);
 
         return corpMpSpaceApi.fileUploadInit(accessToken, param.toJSONString());
     }
@@ -220,4 +221,18 @@
 
         return corpMpSpaceApi.fileUploadFinish(accessToken, param.toJSONString());
     }
+
+    /**
+     * 鑾峰彇涓嬭浇璺緞
+     * @param corpMpSpaceApi
+     * @param accessToken
+     * @param fileId
+     * @return
+     */
+    public static JSONObject getDownloadUrl(CorpMpSpaceApi corpMpSpaceApi, String accessToken, String fileId){
+        JSONObject param = new JSONObject();
+        param.put("fileid", fileId);
+
+        return corpMpSpaceApi.getDownloadUrl(accessToken, param.toJSONString());
+    }
 }

--
Gitblit v1.8.0