array( 'desc' => '刮刮卡奖品:用户已领取', 'kw' => 'EVENT_SCRATCH_RECEIVE_TRUE', ), self::EVENT_SCRATCH_RECEIVE_FALSE => array( 'desc' => '刮刮卡奖品:用户未领取', 'kw' => 'EVENT_SCRATCH_RECEIVE_FALSE', ), ); /** * 关于刮挂卡活动领取状态 * @return array */ public static function getScratchReceive() { return self::$scratchReceive; } public function getTodayHasWinTotal($prize_id){ $total = 0; if (!Verify::unsignedInt($prize_id)) { return $total; } $condition = array( 'prize_id' => $prize_id, 'create_time' => SqlHelper::addCompareOperator('>=', mktime(0,0,0)), ); $result = $this->findBy($condition, null, null, "count(*)"); return array_pop(array_pop($result)); } }