Jelajahi Sumber

完善接口

chenchen 5 bulan lalu
induk
melakukan
65bd8543a5

+ 1 - 1
application-webadmin/src/main/java/com/tourism/webadmin/app/website/service/impl/BasicToWebServiceImpl.java

@@ -309,6 +309,7 @@ public class BasicToWebServiceImpl implements BasicToWebService
         if(tourTourismProjectTravelNotes.getLikeCount() != null) {
             if(type == 1) {
                 tourTourismProjectTravelNotes.setLikeCount(tourTourismProjectTravelNotes.getLikeCount() + 1);
+                tourTourismProjectTravelNotes.setHotValue(tourTourismProjectTravelNotes.getHotValue()+100);
             }else {
                 tourTourismProjectTravelNotes.setLikeCount(tourTourismProjectTravelNotes.getLikeCount() - 1);
             }
@@ -343,7 +344,6 @@ public class BasicToWebServiceImpl implements BasicToWebService
         tourTourismProjectTravelNotes.setHotValue(tourTourismProjectTravelNotes.getHotValue()+50);
         tourTourismProjectTravelNotesService.updateById(tourTourismProjectTravelNotes);
     }
-    }
 
 }