wesmiler hace 1 año
padre
commit
005cc71490
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  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');
                 $join->on('c.order_no','=','a.order_no')->on('c.user_id','=','a.user_id');
             })
             })
             ->where(function($query) use($coinType){
             ->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);
                     $query->where('a.coin_type', $coinType);
                 }
                 }
             })
             })