公告结构化

This commit is contained in:
zhangqinbin
2023-12-11 16:38:30 +08:00
parent 3360f96851
commit d5f5b14745
2 changed files with 13 additions and 2 deletions

View File

@ -119,6 +119,8 @@ public class WpsServiceImpl implements WpsService {
private String kswTimeLimit; private String kswTimeLimit;
@Value("${KingSoftWps.kswpsurl}") @Value("${KingSoftWps.kswpsurl}")
private String kswpsurl; private String kswpsurl;
@Value("${KingSoftWps.kswpsurl-preview}")
private String kswpsurl_preview;
@Resource @Resource
private RedisTemplate<String, Object> redisTemplate; private RedisTemplate<String, Object> redisTemplate;
@ -528,8 +530,13 @@ public class WpsServiceImpl implements WpsService {
vo.setHost(kswhost); vo.setHost(kswhost);
vo.setLastModifiedTime(time); vo.setLastModifiedTime(time);
String url = "";
String retJson = HttpsUtils.UrlPost(kswpsurl, "utf-8", JSON.toJSONString(vo));//httpPost(kswpsurl,json); if("1".equals(in.getType())){
url = kswpsurl;
}else{
url = kswpsurl_preview;
}
String retJson = HttpsUtils.UrlPost(url, "utf-8", JSON.toJSONString(vo));//httpPost(kswpsurl,json);
log.info("ret:"+retJson); log.info("ret:"+retJson);
//String retJson = HttpUtils.httpPost(kswpsurl,json); //String retJson = HttpUtils.httpPost(kswpsurl,json);

View File

@ -26,4 +26,8 @@ public class WpsClientInVo {
*当前用户token *当前用户token
*/ */
private String userToken; private String userToken;
/**
*0 查看 1 编辑
*/
private String type;
} }