Browse Source

修复产品BUG

moshaorui 1 month ago
parent
commit
fcce449f61
1 changed files with 1 additions and 1 deletions
  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');
     }