|
@@ -2,14 +2,19 @@ package com.fs.gtPush.service.impl;
|
|
|
|
|
|
import cn.hutool.http.HttpUtil;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
+import com.fasterxml.jackson.core.JsonProcessingException;
|
|
|
import com.fs.common.core.domain.R;
|
|
|
import com.fs.gtPush.domain.PushReqBean;
|
|
|
import com.fs.gtPush.domain.PushResult;
|
|
|
import com.fs.gtPush.service.uniPush2Service;
|
|
|
+import com.fs.im.service.OpenIMService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@Service
|
|
|
public class uniPush2ServiceImpl implements uniPush2Service {
|
|
|
+ @Autowired
|
|
|
+ private OpenIMService openIMService;
|
|
|
private static final String url = "https://fc-mp-de6e03a9-c1a3-439b-9eec-d0dc3c565e4e.next.bspapp.com/push";
|
|
|
@Override
|
|
|
public PushResult pushMessage(PushReqBean push) {
|
|
@@ -17,4 +22,12 @@ public class uniPush2ServiceImpl implements uniPush2Service {
|
|
|
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 {
|
|
|
+
|
|
|
+ if (companyUserId!=null&&fsUserId!=null && fsUserId!=0){
|
|
|
+ openIMService.sendCourse(fsUserId,companyUserId,link,linkDescribe,linkImageUrl,cropId);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|