WIN-2308041133\Administrator 4 months ago
parent
commit
b4784fa114
1 changed files with 4 additions and 4 deletions
  1. 4 4
      app/models/user/UserBill.php

+ 4 - 4
app/models/user/UserBill.php

@@ -64,8 +64,8 @@ class UserBill extends BaseModel
         $model = new self;
         if ($where['date'] != '') {
             list($startTime, $endTime) = explode(' - ', $where['date']);
-            $model = $model->where('a.add_time', '>', strtotime($startTime));
-            $model = $model->where('a.add_time', '<', (int)bcadd(strtotime($endTime), 86400, 0));
+            $model = $model->where('add_time', '>', strtotime($startTime));
+            $model = $model->where('add_time', '<', (int)bcadd(strtotime($endTime), 86400, 0));
         }
         if ($page) {
             $list = $model->where('uid', $uid)
@@ -162,8 +162,8 @@ class UserBill extends BaseModel
             ->field('FROM_UNIXTIME(add_time,"%Y-%m") as time,group_concat(id SEPARATOR ",") ids')->group('time');
         if ($where['date'] != '') {
             list($startTime, $endTime) = explode(' - ', $where['date']);
-            $model = $model->where('a.add_time', '>', strtotime($startTime));
-            $model = $model->where('a.add_time', '<', (int)bcadd(strtotime($endTime), 86400, 0));
+            $model = $model->where('add_time', '>', strtotime($startTime));
+            $model = $model->where('add_time', '<', (int)bcadd(strtotime($endTime), 86400, 0));
         }
         switch ((int)$type) {
             case 1: