时间
This commit is contained in:
parent
e8c85f8cd4
commit
e14047c48a
@ -46,7 +46,13 @@ class AccountLogLists extends BaseApiDataLists
|
||||
if (!empty($this->params['action'])) {
|
||||
$where[] = ['action', '=', $this->params['action']];
|
||||
}
|
||||
|
||||
// 变动时间
|
||||
if (!empty($this->params['time'])) {
|
||||
$date= strtotime($this->params['time']);
|
||||
$startTime = strtotime($date) - 3600; // 获取该日期零点的时间戳
|
||||
$endTime = strtotime($date) + 86400; // 获取该日期24小时后的时间戳
|
||||
$where[] = ['create_time', 'between time',[$startTime, $endTime]];
|
||||
}
|
||||
return $where;
|
||||
}
|
||||
|
||||
@ -90,4 +96,4 @@ class AccountLogLists extends BaseApiDataLists
|
||||
{
|
||||
return UserAccountLog::where($this->queryWhere())->count();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user