| | |
| | | { |
| | | arr.add(sha); |
| | | } |
| | | param.put("block_sha", arr); |
| | | |
| | | return corpMpSpaceApi.fileUploadInit(accessToken, param.toJSONString()); |
| | | } |
| | |
| | | |
| | | 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()); |
| | | } |
| | | } |