|
|
@@ -48,10 +48,6 @@ public class uniPush2ServiceImpl implements uniPush2Service {
|
|
|
@Override
|
|
|
public PushResult pushMessage(PushReqBean push) {
|
|
|
SysConfig config = iSysConfigService.selectConfigByConfigKey("his.config");
|
|
|
- if (config == null || StringUtils.isBlank(config.getConfigValue())) {
|
|
|
- throw new RuntimeException("his.config 配置不存在");
|
|
|
- }
|
|
|
-
|
|
|
JSONObject json = JSON.parseObject(config.getConfigValue());
|
|
|
String url = json.getString("appPushUrl");
|
|
|
if (StringUtils.isBlank(url)) {
|
|
|
@@ -61,7 +57,6 @@ public class uniPush2ServiceImpl implements uniPush2Service {
|
|
|
String result = HttpUtil.post(url, push.toString());
|
|
|
PushResult pushResult = JSONUtil.toBean(result, PushResult.class);
|
|
|
return pushResult;
|
|
|
-
|
|
|
}
|
|
|
@Override
|
|
|
public void pushSopAppLinkMsgByExternalIM(String cropId, String linkTile, String linkDescribe,String linkImageUrl, String link, Long companyUserId,Long fsUserId) throws JsonProcessingException {
|