dever 6 years ago
parent
commit
80e7d4f34e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tm/lib/Controller/EventsController.class.php

+ 3 - 3
tm/lib/Controller/EventsController.class.php

@@ -348,7 +348,7 @@ class EventsController extends Controller {
 		}
 
 		$this->setOutput('helpData', $data);
-		$this->setOutput('helpDataTotals', $total_num);
+		$this->setOutput('helpDataTotals', ceil($total_num / $size));
 	}
 
 	public function feedback($eventsData, $plat_form_id, $limit = 10, $uid = false)
@@ -383,7 +383,7 @@ class EventsController extends Controller {
 		}
 
 		$this->setOutput('fdData', $data);
-		$this->setOutput('fdDataTotals', $total_num);
+		$this->setOutput('fdDataTotals', ceil($total_num / $size));
 	}
 
 	public function prize($eventsData, $plat_form_id, $limit = 10, $uid = false)
@@ -410,7 +410,7 @@ class EventsController extends Controller {
 			$data = $this->userData($data, $eventsData);
 
 			$this->setOutput('userEventsData', $data);
-			$this->setOutput('userEventsDataTotals', $totals);
+			$this->setOutput('userEventsDataTotals', ceil($totals / $size));
 		}
 	}