@@ -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);
}
@@ -45,7 +45,7 @@ class SdkLoginLogController 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);
@@ -45,7 +45,8 @@ class SdkRegLogController extends BaseController
+
$data['data'] = $this->logic->trandformListColumn($data['data'], ['game', 'ip', 'agent']);
@@ -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
];
@@ -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();