|
@@ -58,8 +58,12 @@ class UpdateHighQualityBooks extends Command
|
|
|
}
|
|
|
}
|
|
|
\Redis::del('male_high_reco_bids','female_high_reco_bids');
|
|
|
- \Redis::sadd('male_high_reco_bids',$male);
|
|
|
- \Redis::sadd('female_high_reco_bids',$female);
|
|
|
+ if(!empty($male)){
|
|
|
+ \Redis::sadd('male_high_reco_bids',$male);
|
|
|
+ }
|
|
|
+ if(!empty($female)){
|
|
|
+ \Redis::sadd('female_high_reco_bids',$female);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
}
|