公告结构化
This commit is contained in:
@ -119,6 +119,8 @@ public class WpsServiceImpl implements WpsService {
|
||||
private String kswTimeLimit;
|
||||
@Value("${KingSoftWps.kswpsurl}")
|
||||
private String kswpsurl;
|
||||
@Value("${KingSoftWps.kswpsurl-preview}")
|
||||
private String kswpsurl_preview;
|
||||
|
||||
@Resource
|
||||
private RedisTemplate<String, Object> redisTemplate;
|
||||
@ -528,8 +530,13 @@ public class WpsServiceImpl implements WpsService {
|
||||
vo.setHost(kswhost);
|
||||
|
||||
vo.setLastModifiedTime(time);
|
||||
|
||||
String retJson = HttpsUtils.UrlPost(kswpsurl, "utf-8", JSON.toJSONString(vo));//httpPost(kswpsurl,json);
|
||||
String url = "";
|
||||
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);
|
||||
//String retJson = HttpUtils.httpPost(kswpsurl,json);
|
||||
|
||||
|
@ -26,4 +26,8 @@ public class WpsClientInVo {
|
||||
*当前用户token
|
||||
*/
|
||||
private String userToken;
|
||||
/**
|
||||
*0 查看 1 编辑
|
||||
*/
|
||||
private String type;
|
||||
}
|
||||
|
Reference in New Issue
Block a user