Ver Fonte

whereRaw 默认值

PC-202304251453\Administrator há 5 meses atrás
pai
commit
ee3e9ab3a6

+ 0 - 1
app/v1/logic/dataReport/UserLogLogic.php

@@ -184,7 +184,6 @@ class UserLogLogic extends BaseLogic
 
         $rechargeRankQuery->order($orderBy, $orderType);
 
-
         $data = $rechargeRankQuery->paginate($limit)->toArray();
 
         $data['data'] = $this->trandformListColumn($data['data'], ['game', 'auth', 'agent', 'pay_channel']);

+ 1 - 1
plugin/saiadmin/basic/BaseLogic.php

@@ -305,7 +305,7 @@ class BaseLogic
                 $whereOr[] = "(game_id = {$gameId} AND auth_id=0)";
             }
         }
-        $whereRaw = $whereOr ? implode(' OR ', $whereOr) : "";
+        $whereRaw = $whereOr ? implode(' OR ', $whereOr) : "1=1";
 
         return [$where, $whereRaw];
     }