From dca24adb8ee2fcde5e59c6eaf28555d6cc451496 Mon Sep 17 00:00:00 2001
From: fhx <308050795@qq.com>
Date: 星期日, 08 十月 2023 18:04:37 +0800
Subject: [PATCH] 1.修改

---
 src/main/java/com/hx/mp/util/CorpMpSpaceUtil.java |   14 ++++++++++++++
 1 files changed, 14 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 eda8dd9..22bb5c9 100644
--- a/src/main/java/com/hx/mp/util/CorpMpSpaceUtil.java
+++ b/src/main/java/com/hx/mp/util/CorpMpSpaceUtil.java
@@ -221,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