|
@@ -7,6 +7,7 @@ import com.fdkankan.common.exception.BusinessException;
|
|
|
import com.fdkankan.db.response.PageInfo;
|
|
|
import com.fdkankan.common.util.FileUtils;
|
|
|
import com.fdkankan.redis.util.RedisUtil;
|
|
|
+import com.fdkankan.ucenter.common.OssPath;
|
|
|
import com.fdkankan.ucenter.constant.LoginConstant;
|
|
|
import com.fdkankan.ucenter.entity.*;
|
|
|
import com.fdkankan.ucenter.mapper.IScenePlusMapper;
|
|
@@ -16,6 +17,7 @@ import com.fdkankan.ucenter.vo.response.AppSceneVo;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -52,6 +54,9 @@ public class AppSceneService {
|
|
|
@Resource
|
|
|
IScenePlusMapper scenePlusMapper;
|
|
|
|
|
|
+ @Value("${fyun.host}")
|
|
|
+ private String ossHost;
|
|
|
+
|
|
|
public PageInfo pageList(AppSceneParam param) {
|
|
|
if(StringUtils.isEmpty(param.getAppUserName()) && StringUtils.isEmpty(param.getPhoneNum()) ){
|
|
|
throw new BusinessException(LoginConstant.FAILURE_CODE_3001, LoginConstant.FAILURE_MSG_3001);
|
|
@@ -127,9 +132,10 @@ public class AppSceneService {
|
|
|
status = -1;
|
|
|
}
|
|
|
String webSite = scenePro == null ? plusExt.getWebSite() : scenePro.getWebSite();
|
|
|
- String sceneNum = scenePro == null ? scenePlus.getTitle() : scenePro.getSceneName();
|
|
|
+ String sceneNum = scenePro == null ? scenePlus.getNum() : scenePro.getNum();
|
|
|
String thumb = scenePro == null ? plusExt.getThumb() : scenePro.getThumb();
|
|
|
String dataSource = scenePro == null ? plusExt.getDataSource() : scenePro.getDataSource();
|
|
|
+ String sceneCallPath = scenePro == null ? String.format(OssPath.v4_statusPath,sceneNum) : String.format(OssPath.v4_statusPath,sceneNum);
|
|
|
HashMap<String,Object> map = new HashMap<>();
|
|
|
map.put("status",status == -2 ? 1:status);
|
|
|
map.put("webSite",webSite);
|
|
@@ -138,6 +144,7 @@ public class AppSceneService {
|
|
|
map.put("dataSource",dataSource);
|
|
|
map.put("payStatus",payStatus);
|
|
|
map.put("recStatus","A");
|
|
|
+ map.put("sceneCallPath",ossHost+sceneCallPath);
|
|
|
return map;
|
|
|
}
|
|
|
|