|
@@ -27,6 +27,7 @@ import com.fs.voice.utils.StringUtil;
|
|
|
import com.fs.wxUser.param.CompanyWxUserSopParam;
|
|
import com.fs.wxUser.param.CompanyWxUserSopParam;
|
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
+import org.apache.commons.lang.StringUtils;
|
|
|
import org.apache.rocketmq.spring.core.RocketMQTemplate;
|
|
import org.apache.rocketmq.spring.core.RocketMQTemplate;
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -510,7 +511,15 @@ public class AsyncSopTestService {
|
|
|
|
|
|
|
|
setting.forEach(item->{
|
|
setting.forEach(item->{
|
|
|
try {
|
|
try {
|
|
|
- push2Service.pushSopAppLinkMsgByExternalIM(cropId,item.getLinkTitle(),item.getLinkDescribe(),item.getLinkImageUrl(),item.getAppLinkUrl(),companyUserId,fsUserId);
|
|
|
|
|
|
|
+ String linkImageUrl = item.getLinkImageUrl();
|
|
|
|
|
+ String linkTitle = item.getLinkTitle();
|
|
|
|
|
+ if (StringUtils.isBlank(linkImageUrl)) {
|
|
|
|
|
+ linkImageUrl = item.getCourseUrl();
|
|
|
|
|
+ }
|
|
|
|
|
+ if (StringUtils.isBlank(linkTitle)) {
|
|
|
|
|
+ linkTitle = item.getTitle();
|
|
|
|
|
+ }
|
|
|
|
|
+ push2Service.pushSopAppLinkMsgByExternalIM(cropId, linkTitle,item.getLinkDescribe(), linkImageUrl,item.getAppLinkUrl(),companyUserId,fsUserId);
|
|
|
} catch (JsonProcessingException e) {
|
|
} catch (JsonProcessingException e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
}
|
|
}
|