Skip to content

Commit a1aa264

Browse files
committed
fix(control): 登录日志 m-d 格式
1 parent ee5f065 commit a1aa264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

laravel/app/Http/Controllers/Api/IndexController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function report()
9999
// 2. 处理数据
100100
for ($i = 0; $i < $input['section']; $i++) {
101101
$strTime = strtotime('+'.$i.' day', $start);
102-
$time = date('Y-m-d', $strTime);
102+
$time = date('m-d', $strTime);
103103
$count = 0;
104104
foreach ($datas as $key => $item) {
105105
if ($item->login_time < ($strTime + 24 * 3600)) {

0 commit comments

Comments
 (0)