Commit 982e994071874b379a14201d1f86331ac572c26e
1 parent
557eb4c1
修复类型转换异常
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/cnlive/shenhe/controller/VideosController.java
| ... | ... | @@ -190,7 +190,7 @@ public class VideosController extends BaseController { |
| 190 | 190 | videos.setSpid_desc(shySites.getName() + "(目击者)"); |
| 191 | 191 | String source1 = videos.getSource(); |
| 192 | 192 | for (ShyActivity activity : activityList) { |
| 193 | - if (activity.getId().equals(Integer.valueOf(source1))) { | |
| 193 | + if (String.valueOf(activity.getId()).equals(source1)) { | |
| 194 | 194 | videos.setSpid_desc(activity.getActivity()); |
| 195 | 195 | break; |
| 196 | 196 | } | ... | ... |