Browse Source

修改dp链接超出可用范围

yangzian 4 năm trước cách đây
mục cha
commit
9086841531

+ 4 - 0
jeecg-boot-bytedance/src/main/java/org/jeecg/modules/bytedance/advertise/service/impl/AiBytedanceAdvertiserStrategyServiceImpl.java

@@ -1129,6 +1129,10 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
             startIndex = dpIndex-yzIndex+1;
             endIndex = dpIndex-yzIndex+campaignAdCnt;
         }
+        //dp 链接 超出可用范围
+        if (endIndex > dpLinkEndIndex){
+            endIndex = dpLinkEndIndex;
+        }
         return "-("+startIndex+"/"+endIndex+")";
     }