瀏覽代碼

【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 ) {
             // 从数据库获取数据