소스 검색

修改文件

柳建 1 년 전
부모
커밋
c85e768bb6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      application/api/controller/Index.php

+ 2 - 2
application/api/controller/Index.php

@@ -61,8 +61,8 @@ class Index extends Api
         $spacetime = 10 * 60;
         $returndata='';
         $userdata = db('admin')->field("id")
-        ->where(['livetime', 'gt', $nowtime - $spacetime])
-        ->where(['incomeendtime', 'gt', $nowtime])
+        ->where(['livetime'=>['gt', $nowtime - $spacetime]])
+        ->where(['incomeendtime'=>['gt', $nowtime]])
         ->select();
         if (!$userdata) {
         $returndata= 'no data';