ソースを参照

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