Parcourir la source

【Mod】修改打卡接口

liuxiangxin il y a 6 mois
Parent
commit
127dd62b53
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      app/Models/Score/ClockinActive.php

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

@@ -66,8 +66,9 @@ class ClockinActive extends Model
     {
         // 结果数据
         //$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 ) {
             // 从数据库获取数据