|
|
@@ -140,27 +140,27 @@ class AccountLogService extends BaseService
|
|
|
/**
|
|
|
* 分类账户统计
|
|
|
* @param $userId 用户ID
|
|
|
- * @param int $cointype 币种类型
|
|
|
+ * @param int $coinType 币种类型
|
|
|
* @param int $userType 用户账户类型
|
|
|
* @return \float[][]
|
|
|
*/
|
|
|
- public function getCountsByType($userId, $cointype = 1, $userType = 1)
|
|
|
+ public function getCountsByType($userId, $coinType = 1, $userType = 1)
|
|
|
{
|
|
|
$datas = [
|
|
|
'counts' => [
|
|
|
- 'today' => $this->getCountDataByDate($userId, $cointype, $userType,1),
|
|
|
- 'yestday' => $this->getCountDataByDate($userId, $cointype, $userType,2),
|
|
|
- 'total' => $this->getCountDataByDate($userId, $cointype, $userType,0)
|
|
|
+ 'today' => $this->getCountDataByDate($userId, $coinType, $userType,1),
|
|
|
+ 'yestday' => $this->getCountDataByDate($userId, $coinType, $userType,2),
|
|
|
+ 'total' => $this->getCountDataByDate($userId, $coinType, $userType,0)
|
|
|
],
|
|
|
'tables' => [
|
|
|
- 'gl_burn' => $this->getCountDataByType($userId, $cointype, $userType,98),
|
|
|
- 'level_burn' => $this->getCountDataByType($userId, $cointype, $userType,97),
|
|
|
- 'live' => $this->getCountDataByType($userId, $cointype, $userType,1),
|
|
|
- 'tip' => $this->getCountDataByType($userId, $cointype, $userType,11),
|
|
|
- 'global' => $this->getCountDataByType($userId, $cointype, $userType,15),
|
|
|
- 'gl' => $this->getCountDataByType($userId, $cointype, $userType,13),
|
|
|
- 'point' => $this->getCountDataByType($userId, $cointype, $userType,14),
|
|
|
- 'invite' => $this->getCountDataByType($userId, $cointype, $userType,12),
|
|
|
+ 'gl_burn' => $this->getCountDataByType($userId, $coinType, $userType,98),
|
|
|
+ 'level_burn' => $this->getCountDataByType($userId, $coinType, $userType,97),
|
|
|
+ 'live' => $this->getCountDataByType($userId, $coinType, $userType,1),
|
|
|
+ 'tip' => $this->getCountDataByType($userId, $coinType, $userType,11),
|
|
|
+ 'global' => $this->getCountDataByType($userId, $coinType, $userType,15),
|
|
|
+ 'gl' => $this->getCountDataByType($userId, $coinType, $userType,13),
|
|
|
+ 'point' => $this->getCountDataByType($userId, $coinType, $userType,14),
|
|
|
+ 'invite' => $this->getCountDataByType($userId, $coinType, $userType,12),
|
|
|
]
|
|
|
];
|
|
|
|