瀏覽代碼

修改文件

柳建 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';