Procházet zdrojové kódy

Merge branch 'qtz' of SH-Arbitrate/Arbitrate-Backend into dev

qtz před 2 roky
rodič
revize
2374e69b06

+ 1
- 45
ruoyi-system/src/main/java/com/ruoyi/bestsign/utils/BestsignOpenApiClient.java Zobrazit soubor

@@ -193,51 +193,7 @@ public class BestsignOpenApiClient {
193 193
         return responseObj.toJSONString();
194 194
     }
195 195
 
196
-    /**
197
-     * 上传文件
198
-     *
199
-     * @param arbitrSignatuVO
200
-     * @return
201
-     * @throws Exception
202
-     */
203
-    public String uploadContact(ArbitrSignatuVO arbitrSignatuVO) throws Exception {
204
-        String methodInvoke = "/storage/contract/upload/";
205
-        JSONObject requestParam = new JSONObject();
206
-
207
-        requestParam.put("account", arbitrSignatuVO.getAccount());
208
-        requestParam.put("fmd5", arbitrSignatuVO.getFileMd5());
209
-        requestParam.put("fdata", arbitrSignatuVO.getFileData());
210
-        requestParam.put("fpages", arbitrSignatuVO.getFilePages());
211
-        requestParam.put("fname", arbitrSignatuVO.getFileName());
212
-        requestParam.put("ftype", arbitrSignatuVO.getFileType());
213
-        requestParam.put("title", arbitrSignatuVO.getContractTitle());
214
-        requestParam.put("expireTime", arbitrSignatuVO.getPeriodValidity());
215
-
216
-
217
-        String timestamsParam = RSAUtils.getRtick();
218
-        // 计算参数签名
219
-        String paramsSign = RSAUtils.calcRsaSign(this.developerId,
220
-                this.privateKey, this.serverHost, methodInvoke, timestamsParam, null,
221
-                requestParam.toJSONString());
222
-        // 签名参数追加为url参数
223
-        String fullUrlParams = String.format(urlSignParams, this.developerId,
224
-                timestamsParam, paramsSign);
225
-        String responseResult = HttpClientSender.sendHttpPost(this.serverHost, methodInvoke,
226
-                fullUrlParams, requestParam.toJSONString());
227
-        JSONObject responseObj = JSON.parseObject(responseResult);
228
-        // 返回errno为0,表示成功,其他表示失败
229
-        if (responseObj.getIntValue("errno") == 0) {
230
-            JSONObject data = responseObj.getJSONObject("data");
231
-            if (data != null) {
232
-                String contractId = data.getString("contractId");
233
-                return contractId;
234
-            }
235
-        } else {
236
-
237
-            log.error("上传文件异常:" + responseObj.toJSONString());
238
-        }
239
-        return responseObj.toJSONString();
240
-    }
196
+    
241 197
 
242 198
     /**
243 199
      * 获取签署链接