Parcourir la source

修复产品BUG

moshaorui il y a 1 mois
Parent
commit
fcce449f61
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/Distributor/Repositories/DistProduct.php

+ 1 - 1
app/Distributor/Repositories/DistProduct.php

@@ -46,7 +46,7 @@ class DistProduct extends EloquentRepository
      */
     public static function selectOptionsNew($limit=30)
     {
-        return Model::where('dist_id', getDistributorId())->where('enabled', 1)->orderBy('created_at', 'desc')->limit($limit)->pluck('title', 'id');
+        return Model::where('dist_id', getDistributorId())->where('enabled', 1)->where('status', 2)->orderBy('created_at', 'desc')->limit($limit)->pluck('title', 'id');
     }