Silent 6 年之前
父节点
当前提交
0eac8b5c58
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      app/Models/Student.php

+ 0 - 1
app/Models/Student.php

xqd
@@ -82,7 +82,6 @@ class Student extends Model
         $this_week_begin = $today->toDateTimeString();
 
         return RemarkDetail::where([
-            ['student_id', '=', $this['id']],
             ['remark_id', '=', $remark['id']],
             ['created_at', '>=', $this_week_begin],
         ])->get()->avg('score');