ith5 6 kuukautta sitten
vanhempi
commit
c1ae981f9f

+ 2 - 2
app/v1/controller/gameLog/RoleDataController.php

@@ -42,8 +42,8 @@ class RoleDataController extends BaseController
             ['user_name', ''],
             ['reg_time', ''],
         ]);
-        $query = $this->logic->search($where);
-        $data = $this->logic->getList($query);
+        // $query = $this->logic->search($where);
+        $data = $this->logic->getList($where);
         // $data['data'] = $this->logic->trandformListColumn($data['data'], ['game', 'ip', 'auth', 'agent']);
         return $this->success($data);
     }

+ 1 - 1
app/v1/controller/gameLog/SdkLoginLogController.php

@@ -45,7 +45,7 @@ class SdkLoginLogController extends BaseController
             ['reg_time', ''],
         ]);
         // 传入的是多选game_id, 转换成字符串
-        $where['game_id'] = is_array($where['game_id']) ? implode(',', $where['game_id']) : $where['game_id'];
+        // $where['game_id'] = is_array($where['game_id']) ? implode(',', $where['game_id']) : $where['game_id'];
         
         $query = $this->logic->searchByAuth($where);
         $data = $this->logic->getList($query);

+ 2 - 1
app/v1/controller/gameLog/SdkRegLogController.php

@@ -45,7 +45,8 @@ class SdkRegLogController extends BaseController
         ]);
 
         // 传入的是多选game_id, 转换成字符串
-        $where['game_id'] = is_array($where['game_id']) ? implode(',', $where['game_id']) : $where['game_id'];
+        // $where['game_id'] = is_array($where['game_id']) ? implode(',', $where['game_id']) : $where['game_id'];
+        
         $query = $this->logic->searchByAuth($where);
         $data = $this->logic->getList($query);
         $data['data'] = $this->logic->trandformListColumn($data['data'], ['game', 'ip', 'agent']);

+ 1 - 1
app/v1/logic/gameLog/RoleDataLogic.php

@@ -122,7 +122,7 @@ class RoleDataLogic extends BaseLogic
             'per_page'      => $limit,
             'last_page'     => ceil($count / $limit),
             'has_more'      => $page < ceil($count / $limit),
-            'total'         => $count
+            'total'         =>  $count
         ];
     }
 

+ 5 - 0
app/v1/logic/gameLog/SdkLoginLogLogic.php

@@ -46,11 +46,16 @@ class SdkLoginLogLogic extends BaseLogic
         $tableName = 'sdk_login_log_'.date('Ym',strtotime($loginTime));
    
         
+        print_r('tableName:'.$tableName);
+
+
         // 切换表名
         $query->table($tableName);
+
         if ($saiType === 'all') {
             return $query->select()->toArray();
         }
+        
         return $query->paginate($limit, false, ['page' => $page])->toArray();
     }
 }