|
|
@@ -96,10 +96,13 @@ public class IpadSendServer {
|
|
|
List<FsCoursePlaySourceConfig> configList = playSourceConfigService.selectByAppIds(miniAppList);
|
|
|
// 筛选出半封禁的小程序数据,得到这个数据然后优先发这个小程序
|
|
|
Optional<FsCoursePlaySourceConfig> optional = configList.stream().filter(e -> e.getStatus() != null && e.getStatus() == 1).findFirst();
|
|
|
- // 判断是否找到
|
|
|
+ Optional<FsCoursePlaySourceConfig> optional2 = configList.stream().filter(e -> e.getStatus() != null && e.getStatus() == 0).findFirst();
|
|
|
+ // 判断是否找到半封禁
|
|
|
if(optional.isPresent()){
|
|
|
// 找到半封禁并且在appid里面存在证明这个客户是打开过小程序,优先发送这个
|
|
|
appid = optional.get().getAppid();
|
|
|
+ }else if(optional2.isPresent()){
|
|
|
+ appid = optional2.get().getAppid();
|
|
|
}
|
|
|
}else{
|
|
|
// 获取用户的创建时间
|