<?php
/* versionbeta:name
 * versionbeta:number
 * versionbeta:site
 * versionbeta:pubtime
 */
class ctl_act_gift extends mod_act_gift{
	function act_default(){
		$this->arr_group = cls_config::get("gift_group","actgift");
		$this->arr_gift = $this->get_gift_all(fun_get::get("page"));
		return $this->get_view();
	}

	function act_view() {
		$this->arr_top10 = $this->get_top10();
		$id = (int)fun_get::get("id");
		$this->is_verify = cls_config::get("exchange_verify","actgift");
		$this->gift_info = $this->get_giftinfo($id);
		$this->record_info = $this->get_record_info();
		$this->userscore = cls_obj::get("cls_user")->get_score();
		return $this->get_view();
	}

	function act_change() {
		$arr = fun_format::json( $this->on_exchange() );
		return $arr;
	}

	function act_mygift() {
		//¶©µ¥ÁÐ±í
		$obj = cls_obj::get("ctl_member");
		$this->memberinfo = $obj->init_info();
		$this->record_list = $this->get_mygift();
		return $this->get_view();
	}
	function act_receive() {
		$arr = fun_format::json( $this->on_receive() );
		return $arr;
	}
}