|
|
@@ -161,7 +161,7 @@ class AccountLogService extends BaseService
|
|
|
* @param int $userType 用户账户类型
|
|
|
* @return \float[][]
|
|
|
*/
|
|
|
- public function getCountsByType($userId, $coinType = 1, $userType = 1)
|
|
|
+ public function getCountsByType($userId, $coinType = 1, $userType = 1, $type=1)
|
|
|
{
|
|
|
$datas = [
|
|
|
'counts' => [
|
|
|
@@ -169,7 +169,10 @@ class AccountLogService extends BaseService
|
|
|
'yestday' => $this->getCountDataByDate($userId, $coinType, $userType,2),
|
|
|
'total' => $this->getCountDataByDate($userId, $coinType, $userType,0)
|
|
|
],
|
|
|
- 'tables' => [
|
|
|
+ ];
|
|
|
+
|
|
|
+ if($type == 1){
|
|
|
+ $datas['tables'] = [
|
|
|
'gl_burn' => $this->getCountDataByType($userId, $coinType, $userType,98),
|
|
|
'level_burn' => $this->getCountDataByType($userId, $coinType, $userType,97),
|
|
|
'live' => $this->getCountDataByType($userId, $coinType, $userType,1),
|
|
|
@@ -178,11 +181,10 @@ class AccountLogService extends BaseService
|
|
|
'gl' => $this->getCountDataByType($userId, $coinType, $userType,13),
|
|
|
'point' => $this->getCountDataByType($userId, $coinType, $userType,14),
|
|
|
'invite' => $this->getCountDataByType($userId, $coinType, $userType,12),
|
|
|
- ]
|
|
|
- ];
|
|
|
-
|
|
|
+ ];
|
|
|
+ $datas['tables'] = array_values($datas['tables']);
|
|
|
+ }
|
|
|
|
|
|
- $datas['tables'] = array_values($datas['tables']);
|
|
|
return $datas;
|
|
|
}
|
|
|
|