|
@@ -7,6 +7,7 @@ import com.fs.common.annotation.DataSource;
|
|
|
import com.fs.common.enums.DataSourceType;
|
|
import com.fs.common.enums.DataSourceType;
|
|
|
import com.fs.common.exception.base.BaseException;
|
|
import com.fs.common.exception.base.BaseException;
|
|
|
import com.fs.common.utils.PubFun;
|
|
import com.fs.common.utils.PubFun;
|
|
|
|
|
+import com.fs.config.cloud.CloudHostProper;
|
|
|
import com.fs.course.config.CourseConfig;
|
|
import com.fs.course.config.CourseConfig;
|
|
|
import com.fs.course.domain.FsUserCourse;
|
|
import com.fs.course.domain.FsUserCourse;
|
|
|
import com.fs.course.domain.FsUserCourseVideo;
|
|
import com.fs.course.domain.FsUserCourseVideo;
|
|
@@ -34,6 +35,8 @@ import lombok.AllArgsConstructor;
|
|
|
import org.apache.commons.beanutils.ConvertUtils;
|
|
import org.apache.commons.beanutils.ConvertUtils;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.apache.rocketmq.spring.core.RocketMQTemplate;
|
|
import org.apache.rocketmq.spring.core.RocketMQTemplate;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
@@ -55,6 +58,10 @@ import java.util.stream.Collectors;
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
|
public class QwSopTempServiceImpl implements IQwSopTempService
|
|
public class QwSopTempServiceImpl implements IQwSopTempService
|
|
|
{
|
|
{
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private CloudHostProper cloudHostProper;
|
|
|
|
|
+
|
|
|
private final QwSopTempMapper qwSopTempMapper;
|
|
private final QwSopTempMapper qwSopTempMapper;
|
|
|
private final FastGptChatReplaceWordsMapper fastGptChatReplaceWordsMapper;
|
|
private final FastGptChatReplaceWordsMapper fastGptChatReplaceWordsMapper;
|
|
|
private final IQwSopTempRulesService qwSopTempRulesService;
|
|
private final IQwSopTempRulesService qwSopTempRulesService;
|
|
@@ -69,7 +76,6 @@ public class QwSopTempServiceImpl implements IQwSopTempService
|
|
|
private final IQwSopService qwSopService;
|
|
private final IQwSopService qwSopService;
|
|
|
private final IQwUserService qwUserService;
|
|
private final IQwUserService qwUserService;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 查询sop模板
|
|
* 查询sop模板
|
|
|
*
|
|
*
|
|
@@ -460,10 +466,19 @@ public class QwSopTempServiceImpl implements IQwSopTempService
|
|
|
QwSopTempSetting2.Content.Setting setting = new QwSopTempSetting2.Content.Setting();
|
|
QwSopTempSetting2.Content.Setting setting = new QwSopTempSetting2.Content.Setting();
|
|
|
setting.setLinkTitle(e.getTitle());
|
|
setting.setLinkTitle(e.getTitle());
|
|
|
setting.setMiniprogramTitle(e.getTitle());
|
|
setting.setMiniprogramTitle(e.getTitle());
|
|
|
- setting.setMiniprogramPicUrl(fsUserCourse.getImgUrl());
|
|
|
|
|
|
|
+
|
|
|
|
|
+ //用课节图片做封面
|
|
|
|
|
+ if("今正科技".equals(cloudHostProper.getCompanyName())){
|
|
|
|
|
+ setting.setMiniprogramPicUrl(!StringUtil.isNullOrEmpty(e.getThumbnail())?e.getThumbnail():fsUserCourse.getImgUrl());
|
|
|
|
|
+ setting.setLinkImageUrl(!StringUtil.isNullOrEmpty(e.getThumbnail())?e.getThumbnail():fsUserCourse.getImgUrl());
|
|
|
|
|
+ }else {
|
|
|
|
|
+ setting.setMiniprogramPicUrl(fsUserCourse.getImgUrl());
|
|
|
|
|
+ setting.setLinkImageUrl(fsUserCourse.getImgUrl());
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
setting.setIsBindUrl(1);
|
|
setting.setIsBindUrl(1);
|
|
|
setting.setLinkDescribe(e.getTitle());
|
|
setting.setLinkDescribe(e.getTitle());
|
|
|
- setting.setLinkImageUrl(fsUserCourse.getImgUrl());
|
|
|
|
|
setting.setContentType("4");
|
|
setting.setContentType("4");
|
|
|
content.setContent(JSON.toJSONString(setting));
|
|
content.setContent(JSON.toJSONString(setting));
|
|
|
content.setIsBindUrl(1);
|
|
content.setIsBindUrl(1);
|