公告结构化
This commit is contained in:
@ -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);
|
||||||
|
|
||||||
|
@ -26,4 +26,8 @@ public class WpsClientInVo {
|
|||||||
*当前用户token
|
*当前用户token
|
||||||
*/
|
*/
|
||||||
private String userToken;
|
private String userToken;
|
||||||
|
/**
|
||||||
|
*0 查看 1 编辑
|
||||||
|
*/
|
||||||
|
private String type;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user