柳建 1 жил өмнө
parent
commit
c85e768bb6

+ 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';