Silent 7 năm trước cách đây
mục cha
commit
dd909cd067
1 tập tin đã thay đổi với 2 bổ sung5 xóa
  1. 2 5
      app/Models/Student.php

+ 2 - 5
app/Models/Student.php

xqd
@@ -110,14 +110,11 @@ class Student extends Model
         }
         $this_week_begin = $today->toDateTimeString();
         $this_week_end = $today->addDays(7)->toDateTimeString();
-        Log::info($this_week_begin);
-        Log::info($this_week_end);
         $tmp = Remark::where([
             ['student_id', '=', $this['id']],
-            ['created_at', '>=', $this_week_begin],
-            ['created_at', '<', $this_week_end],
+            ['updated_at', '>=', $this_week_begin],
+            ['updated_at', '<', $this_week_end],
         ])->first();
-        Log::info($tmp);
         return empty($tmp) ? true : false;
     }