make_type(); if(!$ret = $iGen->make_bonus()) { return false; } $money = $type->getTotal_amount(); $type_paramer = $type->get_param(); $pre_helper = new predeposit_helper(); $pre_helper->hand_out_bonus($money,$type->getType_sn(),$type_paramer['type_name'],"发送了{$money}元的红包."); return $type->getType_sn(); } catch (Exception $ex) { return false; } } static public function grab_bonus($paramer,&$isNew) //数组类型的参数 { try { $type = type::create_by_sn($paramer['type_sn']); $iGrab = create_grab($type); $bonus = $iGrab->get_bonus($paramer,$isNew); if(empty($bonus)) { return false; } else { return $bonus; } } catch (Exception $ex) { return false; } } static public function add_fixed_bonus() { } } ?>