sunhao 5 years ago
parent
commit
150869aed1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Http/Controllers/Admin/StatisticsController.php

+ 2 - 2
app/Http/Controllers/Admin/StatisticsController.php

@@ -3740,8 +3740,8 @@ class StatisticsController extends Controller
3740 3740
             //时间进度
3741 3741
             //当前月
3742 3742
             $tmonth = date('Y-m');
3743
-            $m = date('m');
3744
-            $d = date('d');
3743
+            $m = (int)date('m');
3744
+            $d = (int)date('d');
3745 3745
             $days = $m_day[$m];
3746 3746
             if( $v['month'] == $tmonth ){               
3747 3747
                 $v['time_rate'] = round($d / $days, 4);