From 1f53c11bd4021eab70c1519b893186fc9815165c Mon Sep 17 00:00:00 2001 From: yss <17921@qq.com> Date: Mon, 5 Jun 2023 14:13:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B2=83=E6=96=87=E6=A1=A3-=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E9=93=BE=E6=8E=A5=E3=80=81=E5=9B=9E=E8=B0=83=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=EF=BC=9A=E6=9F=A5=E8=AF=A2=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E5=8F=8A=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/ebtp/extend/wps/controller/WpsController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/controller/WpsController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/controller/WpsController.java index 2d27f3f..448a1ad 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/controller/WpsController.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/controller/WpsController.java @@ -70,7 +70,7 @@ public class WpsController { * @return */ @ApiOperation("沃文档回调-保存文档") - @GetMapping("/file/save") + @PostMapping("/file/save") @OperationLogDetail(businessModule = EbtpLogBusinessModule.OTHER,operationType = EbtpLogType.SELECT,detail = "沃文档回调-保存文档") public Object saveFile(@RequestHeader("X-Weboffice-Token") String token, @RequestParam("_w_third_user_id") String userId, From 7dc44bb1df8bfd9f9e33371cf74f5ed80d7d2d2e Mon Sep 17 00:00:00 2001 From: yss <17921@qq.com> Date: Mon, 5 Jun 2023 14:31:07 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B2=83=E6=96=87=E6=A1=A3-=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E9=93=BE=E6=8E=A5=E3=80=81=E5=9B=9E=E8=B0=83=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=EF=BC=9A=E6=9F=A5=E8=AF=A2=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E5=8F=8A=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/ebtp/extend/wps/service/impl/WpsServiceImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/service/impl/WpsServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/service/impl/WpsServiceImpl.java index ad1f6b7..3b3469e 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/service/impl/WpsServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/service/impl/WpsServiceImpl.java @@ -10,6 +10,7 @@ import com.chinaunicom.ebtp.mall.cloud.attachment.sdk.model.AttachmentEntity; import com.chinaunicom.ebtp.mall.cloud.attachment.sdk.model.UploadObject; import com.chinaunicom.mall.ebtp.common.base.service.IBaseCacheUserService; import com.chinaunicom.mall.ebtp.common.exception.common.CommonExceptionEnum; +import com.chinaunicom.mall.ebtp.common.log.OperationLogDetail; import com.chinaunicom.mall.ebtp.common.log.enums.EbtpLogBusinessModule; import com.chinaunicom.mall.ebtp.common.log.enums.EbtpLogType; import com.chinaunicom.mall.ebtp.common.log.service.OperationLogService; @@ -232,6 +233,7 @@ public class WpsServiceImpl implements WpsService { * ContentJson 没有就传空字符串 * @return */ + @OperationLogDetail(businessModule = EbtpLogBusinessModule.OTHER,operationType = EbtpLogType.SELECT,detail = "沃文档-获取应用权限") public String getWpsAppToken(){ if(redisTemplate.opsForValue().get("wpsAppToken:"+app_id)!=null){ return String.valueOf(redisTemplate.opsForValue().get("wpsAppToken:"+app_id)); @@ -255,6 +257,7 @@ public class WpsServiceImpl implements WpsService { * @param bean * @return */ + @OperationLogDetail(businessModule = EbtpLogBusinessModule.OTHER,operationType = EbtpLogType.SELECT,detail = "沃文档-调用天擎接口") public Map callUniWpsInterfaceJson(CrypBean bean) { log.info("沃文档-天擎接口------callUniInterface:---入参-----" + JSON.toJSONString(bean)); String url= ""; @@ -354,6 +357,7 @@ public class WpsServiceImpl implements WpsService { * @param data * @return */ + @OperationLogDetail(businessModule = EbtpLogBusinessModule.OTHER,operationType = EbtpLogType.SELECT,detail = "沃文档-uniBssWpsHttpPost") public String uniBssWpsHttpPost(String path, String data,String nlptDate,String nlptAuth,String nlptContentMd5,String contentType) { String str = ""; @@ -374,6 +378,7 @@ public class WpsServiceImpl implements WpsService { conn.setDoOutput(true); conn.setDoInput(true); conn.setRequestMethod("POST"); + out = new PrintWriter(conn.getOutputStream()); out.print(data); out.flush(); @@ -388,6 +393,7 @@ public class WpsServiceImpl implements WpsService { is.close(); conn.disconnect(); + operationLogService.addOperationLog("沃文档天擎接口调用信息,HttpURLConnection={}"+JSONObject.toJSONString(conn)+",参数{}"+data+",返回信息{}"+str,true, EbtpLogBusinessModule.OTHER, EbtpLogType.INSERT); } catch (Exception var9) { var9.printStackTrace(); }