Эх сурвалжийг харах

【Mod】修改打卡接口

liuxiangxin 6 сар өмнө
parent
commit
127dd62b53

+ 3 - 2
app/Models/Score/ClockinActive.php

@@ -66,8 +66,9 @@ class ClockinActive extends Model
     {
     {
         // 结果数据
         // 结果数据
         //$list                   = $force ? [] : cache('admin:clockin:active:list');
         //$list                   = $force ? [] : cache('admin:clockin:active:list');
-        $where[]                = ['status'=>0];
-        $where[]                = ['end_time','>=',time()];
+        $where[]               = ['status','=',0];
+        $where[]               = ['end_time','>=',time()];
++       $where[]               = ['start_time','<=',time()];
         // 不存在数据
         // 不存在数据
         //if ( !$list ) {
         //if ( !$list ) {
             // 从数据库获取数据
             // 从数据库获取数据