柳建 il y a 1 an
Parent
commit
c85e768bb6
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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';