Silent hace 7 años
padre
commit
e98e496b9b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Http/Controllers/WeChat/ApiController.php

+ 1 - 1
app/Http/Controllers/WeChat/ApiController.php

xqd
@@ -205,7 +205,7 @@ class ApiController extends Controller
         $today = $now->day;
         for($i = 1; $i <= $today; ++$i) {
             $tmp = $checkCardList->where('day', $i);
-            if(empty($tmp)) {
+            if($tmp->count() == 0) {
                 $checkCardList->push(collect(['month' => 'current', 'day' => $i, 'color' => '#f65556']));
             }
         }