wesmiler 1 rok pred
rodič
commit
005cc71490
1 zmenil súbory, kde vykonal 1 pridanie a 3 odobranie
  1. 1 3
      app/Services/Api/AccountLogService.php

+ 1 - 3
app/Services/Api/AccountLogService.php

@@ -78,9 +78,7 @@ class AccountLogService extends BaseService
                 $join->on('c.order_no','=','a.order_no')->on('c.user_id','=','a.user_id');
             })
             ->where(function($query) use($coinType){
-                if($coinType == 3){
-                    $query->whereIn('a.coin_type',[2,3]);
-                }else if($coinType>0){
+                if($coinType>0){
                     $query->where('a.coin_type', $coinType);
                 }
             })