Bläddra i källkod

Merge branch 'master' of 47.110.49.99:wangdu/wangdu_public_api

zz 4 år sedan
förälder
incheckning
87a91caf89
1 ändrade filer med 6 tillägg och 2 borttagningar
  1. 6 2
      app/Console/Commands/SuperiorBooks/UpdateHighQualityBooks.php

+ 6 - 2
app/Console/Commands/SuperiorBooks/UpdateHighQualityBooks.php

@@ -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);
+        }
 
     }
 }