ZxcZxc123 2 years ago
parent
commit
c5d76cb366
1 changed files with 7 additions and 3 deletions
  1. 7 3
      app/models/user/UserBill.php

+ 7 - 3
app/models/user/UserBill.php

@@ -169,9 +169,13 @@ class UserBill extends BaseModel
         }
         }
 
 
         if ($page) $model = $model->page((int)$page, (int)$limit);
         if ($page) $model = $model->page((int)$page, (int)$limit);
-        $list = ($list = $model->select()) ? $list->toArray() : [];
-        var_dump('789');
-        var_dump($list);
+//        $list = ($list = $model->select()) ? $list->toArray() : [];
+        $list = $model->select();
+        if ($list) {
+            $list = $list->toArray();
+        } else {
+            $list = [];
+        }
         $data = [];
         $data = [];
         foreach ($list as $item) {
         foreach ($list as $item) {
             var_dump('2.4');
             var_dump('2.4');