Commit d7932926d6d539ae06c2a8918a793f3dcc9e1a20
1 parent
4e9ed92f
目击者来源
Showing
1 changed file
with
14 additions
and
2 deletions
src/main/java/com/cnlive/shenhe/controller/VideosController.java
| @@ -158,8 +158,20 @@ public class VideosController extends BaseController { | @@ -158,8 +158,20 @@ public class VideosController extends BaseController { | ||
| 158 | ShySites shySites = sitesService.findspidDescByspid(videos.getSpid()); | 158 | ShySites shySites = sitesService.findspidDescByspid(videos.getSpid()); |
| 159 | if (CommonUtils.isNotNull(shySites)) { | 159 | if (CommonUtils.isNotNull(shySites)) { |
| 160 | if(CommonUtils.isNotEmpty(videos.getCategory())&&videos.getCategory().equals(CommonConst.CATEGORY_WITNESS)){ | 160 | if(CommonUtils.isNotEmpty(videos.getCategory())&&videos.getCategory().equals(CommonConst.CATEGORY_WITNESS)){ |
| 161 | - videos.setSpid_desc(shySites.getName()+"(目击者)"); | ||
| 162 | - }else if(CommonUtils.isNotEmpty(videos.getCategory())&&videos.getCategory().equals(CommonConst.CATEGORY_MOMENT)){ | 161 | + //0-目击者 1-童声共济 2-全民健身 3-目击者政府监督 4-老年大学 5-美食中国 |
| 162 | + String source = videos.getSource(); | ||
| 163 | + if("1".equals(source)){ | ||
| 164 | + videos.setSpid_desc("童声共济"+"(目击者)"); | ||
| 165 | + } else if("2".equals(source)){ | ||
| 166 | + videos.setSpid_desc("全民健身"+"(目击者)"); | ||
| 167 | + } else if("4".equals(source)){ | ||
| 168 | + videos.setSpid_desc("老年大学"+"(目击者)"); | ||
| 169 | + } else if("5".equals(source)){ | ||
| 170 | + videos.setSpid_desc("美食中国"+"(目击者)"); | ||
| 171 | + } else { | ||
| 172 | + videos.setSpid_desc(shySites.getName()+"(目击者)"); | ||
| 173 | + } | ||
| 174 | + }else if(CommonUtils.isNotEmpty(videos.getCategory())&&videos.getCategory().equals(CommonConst.CATEGORY_MOMENT)){ | ||
| 163 | videos.setSpid_desc(shySites.getName()+"(朋友圈)"); | 175 | videos.setSpid_desc(shySites.getName()+"(朋友圈)"); |
| 164 | }else{ | 176 | }else{ |
| 165 | videos.setSpid_desc(shySites.getName()); | 177 | videos.setSpid_desc(shySites.getName()); |