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

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

@@ -350,10 +350,12 @@ class EventsController extends Controller {
 
 	public function prize($eventsData, $plat_form_id, $limit = 10, $uid = false)
 	{
-		$condition = array('audit' => 2, 'platform_id' => SqlHelper::addCompareOperator('&', $plat_form_id));
+		$condition = array('audit' => 2, 'platform_id' => SqlHelper::addCompareOperator('&', $plat_form_id), 'scratch_receive' => LotteryData::EVENT_SCRATCH_RECEIVE_TRUE);
 
 		if (isset($eventsData['id'])) {
 			$condition['events_id'] = $eventsData['id'];
+			unset($condition['platform_id']);
+			unset($condition['scratch_receive']);
 		}
 		if ($uid) {
 			$condition['uid'] = $uid;