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

+ 1 - 1
app/Models/CheckCard.php

xqd
@@ -50,6 +50,6 @@ class CheckCard extends Model
             }
         }
 
-        return empty($res) ? 0 : $res;
+        return $res;
     }
 }

+ 1 - 1
app/Models/Student.php

xqd
@@ -182,6 +182,6 @@ class Student extends Model
         if(!empty($diff_time)) {
             $res .= $diff_time . '秒';
         }
-        return $res;
+        return empty($res) ? 0 : $res;
     }
 }