qifengquan há 1 ano atrás
pai
commit
a874d2c8d0
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      app/data/controller/api/auth/UserPurchase.php

+ 1 - 1
app/data/controller/api/auth/UserPurchase.php

@@ -76,8 +76,8 @@ class UserPurchase extends Auth
             //$offer->where('amount','=',0);
             $offer->whereRaw('amount=0 or amount is NULL');
         }elseif($request['status']==2){
-            $offer->where('amount','>',0);
             if ($request['tab']!=1){
+                $offer->where('amount','>',0);
                 $offer->whereNotExists(
                     $item->where("offer_id",Db::raw("{$offerTable}.id"))->buildSql()
                 );