修复错误

This commit is contained in:
mkm 2023-07-24 15:25:34 +08:00
parent d6c26f5d30
commit 94dcd14a3a

View File

@ -49,8 +49,8 @@ class AccountLogLists extends BaseApiDataLists
// 变动时间
if (!empty($this->params['time'])) {
$date= strtotime($this->params['time']);
$startTime = strtotime($date) - 3600; // 获取该日期零点的时间戳
$endTime = strtotime($date) + 86400; // 获取该日期24小时后的时间戳
$startTime = $date - 3600; // 获取该日期零点的时间戳
$endTime = $date + 86400; // 获取该日期24小时后的时间戳
$where[] = ['create_time', 'between time',[$startTime, $endTime]];
}
return $where;