|
@@ -44,13 +44,13 @@ public class RecommendController {
|
|
|
|
|
|
List<RecommendVo> result = new ArrayList<>();
|
|
|
|
|
|
-
|
|
|
+
|
|
|
List<String> pids = eventService.getCoursesFromLogs(user.getUid());
|
|
|
if(pids != null && pids.size() > 0){
|
|
|
log.info("get course ids from logs, courseIds={}", pids);
|
|
|
|
|
|
pids.forEach(pid -> {
|
|
|
- if(result.size() <= RECOMMEND_NUM){
|
|
|
+ if(result.size() < RECOMMEND_NUM){
|
|
|
Course course = productService.getCourse(pid);
|
|
|
if(course != null){
|
|
|
|