|
|
@@ -12,6 +12,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.apache.commons.collections4.MapUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.apache.commons.lang3.math.NumberUtils;
|
|
|
import org.apache.commons.lang3.tuple.Pair;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Qualifier;
|
|
|
@@ -109,7 +110,10 @@ public class YearShareCate1RecallStrategy implements RecallStrategy {
|
|
|
}
|
|
|
|
|
|
for (int i = 0; i < actVidSeq.size(); i++) {
|
|
|
- long videoIdL = Long.parseLong(actVidSeq.get(i));
|
|
|
+ long videoIdL = NumberUtils.toLong(actVidSeq.get(i), -1);
|
|
|
+ if (videoIdL <= 0){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
String type = actTypeSeq.get(i);
|
|
|
if (!"share".equals(type)) {
|
|
|
continue;
|