Переглянути джерело

培训完成的判断条件

lizhen_gitee 6 місяців тому
батько
коміт
1ea737277d
1 змінених файлів з 3 додано та 1 видалено
  1. 3 1
      application/api/controller/Index.php

+ 3 - 1
application/api/controller/Index.php

@@ -141,8 +141,10 @@ class Index extends Api
         }elseif($type == 1){
         }elseif($type == 1){
             $where['starttime'] = ['gt',$now];
             $where['starttime'] = ['gt',$now];
         }else{
         }else{
+//            $where['starttime'] = ['lt',$now];
+//            $where['endtime'] = ['gt',$now];
+            $where['pingjia_time'] = 0;
             $where['starttime'] = ['lt',$now];
             $where['starttime'] = ['lt',$now];
-            $where['endtime'] = ['gt',$now];
         }
         }
 
 
         //非实名,只能看一部分
         //非实名,只能看一部分