depositcontrol(); } function depositcontrol() { parent::__construct(); $this->load('deposit'); $this->app = $this->cache['apps'][UC_APPID]; } function onadd() { $this->init_input(); $user_id = $this->input('user_id'); $user_account = $this->input('user_account'); $user_nickname = $this->input('user_nickname'); $game_id = $this->input('game_id'); $game_appid = $this->input('game_appid'); $game_name = $this->input('game_name'); $server_id = $this->input('server_id'); $server_name = $this->input('server_name'); $promote_id = $this->input('promote_id'); $promote_account = $this->input('promote_account'); $order_number = $this->input('order_number'); $pay_order_number = $this->input('pay_order_number'); $pay_amount = $this->input('pay_amount'); $pay_time = $this->input('create_time'); $extend = $this->input('extend'); $pay_way = $this->input('pay_way'); $deposit_ip = $this->input('deposit_ip'); $sdk_version = $this->input('sdk_version'); $version = $this->input('version'); $platform=$this->input('platform'); $pay_notify_url=$this->input('pay_notify_url'); $game_key=$this->input('game_key'); $id = $_ENV['deposit']->add_deposit($user_id, $user_account,$user_nickname,$game_id,$game_appid,$game_name,$server_id,$server_name,$promote_id, $promote_account, $order_number, $pay_order_number,$pay_amount,$pay_time,$extend,$pay_way,$deposit_ip,$sdk_version,$version,$platform,$pay_notify_url,$game_key); return $id; } function onfind(){ $this->init_input(); $pay_order_number=$this->input('pay_order_number'); $data=$_ENV['deposit']->find_deposit($pay_order_number); return $data; } function onchange(){ $this->init_input(); $pay_order_number=$this->input('pay_order_number'); $status=$this->input('status'); $result=$_ENV['deposit']->changeGamePayStatus($pay_order_number,$status); return $result; } function onedit() { $this->init_input(); $pay_order_number = $this->input('pay_order_number'); $pay_status=$this->input('pay_status'); $status = $_ENV['deposit']->edit_deposit($pay_order_number, $pay_status); return $status; } function onedit_param() { $this->init_input(); $pay_order_number = $this->input('pay_order_number'); $key=$this->input('key'); $value=$this->input('value'); $status = $_ENV['deposit']->edit_deposit_param($pay_order_number, $key, $value); return $status; } function onselect(){ $this->init_input(); $page=$this->input('page'); $ppp=$this->input('ppp'); $param=$this->input('param'); $for_uc = $this->input('for_uc'); $data=$_ENV['deposit']->select_deposit($page,$ppp,$param,$for_uc); return $data; } } ?>