소스 검색

【Mod】修改打卡接口

liuxiangxin 6 달 전
부모
커밋
127dd62b53
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  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 ) {
             // 从数据库获取数据