package II03d4c4cc7bf2ffa15f8a48790b6ab83e; use strict 'vars'; use base qw/IIf2c9beae76f7a1dcf6d60e14986fb023/; use IIa67e09caf104f2e50322b7bc59b766fb; use II535843728d21206bdd21a2a084373080; use IIc01104c48d0514ef0f947c295055d82d; BEGIN{*II03d4c4cc7bf2ffa15f8a48790b6ab83e::IlIlIIlllIIlllll=\%{pack('H6','771e06')^'2PP'};*II03d4c4cc7bf2ffa15f8a48790b6ab83e::IlIllIIIllIIllll=\&{pack('H24','2c2859280d7732007b3b210f')^'AI0F7MA8LYY;'};$II03d4c4cc7bf2ffa15f8a48790b6ab83e::IlIlIIIIIllIllII=pack('H18','07636208131d15156e')^'O76XLUZF:';$II03d4c4cc7bf2ffa15f8a48790b6ab83e::IIIIlIIllIlIllll=pack('H12','121c181e7a06')^'XUVR3E'};sub dbTable     { '' } BEGIN{*II03d4c4cc7bf2ffa15f8a48790b6ab83e::lIIIlIIIlllIlIIl=\%{pack('H6','72186f')^'7V9'};*II03d4c4cc7bf2ffa15f8a48790b6ab83e::lIIlIlIlIIIIlIII=\&{pack('H24','5f58275574634f050e22327b')^'29N;NY<=9@JO'};$II03d4c4cc7bf2ffa15f8a48790b6ab83e::IIIlllIllIIlIllI=pack('H18','1c06156c06740e6703')^'TRA<Y<A4W';$II03d4c4cc7bf2ffa15f8a48790b6ab83e::IllIlIIIIlllIlll=pack('H12','0c187c140c7f')^'FQ2XE<'};sub dbFields    { qw// } BEGIN{*II03d4c4cc7bf2ffa15f8a48790b6ab83e::IIlIllIllllllIIl=\%{pack('H6','731f69')^'6Q?'};*II03d4c4cc7bf2ffa15f8a48790b6ab83e::lIIlIIlIlIIlIlII=\&{pack('H24','282b23566c7d40737b21350c')^'EJJ8VG3KLCM8'};$II03d4c4cc7bf2ffa15f8a48790b6ab83e::IllIIlIIIlIIlIIl=pack('H18','04661d1c0c01751516')^'L2ILSI:FB';$II03d4c4cc7bf2ffa15f8a48790b6ab83e::lllllIlIlIlIllII=pack('H12','7d0174791c04')^'7H:5UG'};sub defaultViewClass { IIa67e09caf104f2e50322b7bc59b766fb::IIIIIIlIllllIIII($IIf2c9beae76f7a1dcf6d60e14986fb023::lllIlIIllIlIlIll{$IIa67e09caf104f2e50322b7bc59b766fb::llllIIIlIIIlIIIl},603,$IIf2c9beae76f7a1dcf6d60e14986fb023::lllIlIIllIlIlIll{$II535843728d21206bdd21a2a084373080::lIlllIlIllIllIIl}) } BEGIN{*II03d4c4cc7bf2ffa15f8a48790b6ab83e::llIIlIllIIIIlIll=\%{pack('H6','0d1a16')^'HT@'};*II03d4c4cc7bf2ffa15f8a48790b6ab83e::IIllIIlllIIIllIl=\&{pack('H24','25312029780d4c7c7d542f75')^'HPIGB7?DJ6WA'};$II03d4c4cc7bf2ffa15f8a48790b6ab83e::IIIIllIlIIIIlIll=pack('H18','1b186608640f151f14')^'SL2X;GZL@';$II03d4c4cc7bf2ffa15f8a48790b6ab83e::IIIIIllIIIIlIIII=pack('H12','720a0d7c7e0e')^'8CC07M'};sub search { my $class = shift; my $list = Zen->getRequest->getRequestCache->{BannerStatList}; my $data = [ map { $class->get($_) } @$list ]; wantarray ? @$data : $data; } BEGIN{*II03d4c4cc7bf2ffa15f8a48790b6ab83e::IIIlIIIIIlIIIllI=\%{pack('H6','777562')^'2;4'};*II03d4c4cc7bf2ffa15f8a48790b6ab83e::llIIIIIIllIlIlIl=\&{pack('H24','2356333b636f4c757028497a')^'N7ZUYU?MGJ1N'};$II03d4c4cc7bf2ffa15f8a48790b6ab83e::lIIIIllllIlIlIll=pack('H18','79100208160f021f66')^'1DVXIGML2';$II03d4c4cc7bf2ffa15f8a48790b6ab83e::IIIIllIIIIlllllI=pack('H12','71091e1a137c')^';@PVZ?'};sub getCount { my $class = shift; my $list = Zen->getRequest->getRequestCache->{BannerStatList}; scalar(@$list); } BEGIN{*II03d4c4cc7bf2ffa15f8a48790b6ab83e::IllIIlllllIIllII=\%{pack('H6','117c1a')^'T2L'};*II03d4c4cc7bf2ffa15f8a48790b6ab83e::IlIlllIIIllllllI=\&{pack('H24','3b2750550f0c466006583b77')^'VF9;565X1:CC'};$II03d4c4cc7bf2ffa15f8a48790b6ab83e::IlIllllIllllllll=pack('H18','7b1e0411181219011f')^'3JPAGZVRK';$II03d4c4cc7bf2ffa15f8a48790b6ab83e::lIllIlIIIlIIIIIl=pack('H12','0e0f020d111a')^'DFLAXY'};sub tbl    { '' } BEGIN{*II03d4c4cc7bf2ffa15f8a48790b6ab83e::IIlIlIlIIIlIIIII=\%{pack('H6','0f7b6a')^'J5<'};*II03d4c4cc7bf2ffa15f8a48790b6ab83e::IllIIlIIlIIIllll=\&{pack('H24','2226562c69752409755a4d7a')^'OG?BSOW1B85N'};$II03d4c4cc7bf2ffa15f8a48790b6ab83e::IIIIIlIIlIIlllIl=pack('H18','081e031663707d196a')^'@JWF<82J>';$II03d4c4cc7bf2ffa15f8a48790b6ab83e::lIIllIllIlIllllI=pack('H12','7c08191f1a07')^'6AWSSD'};sub buildBannerStatList { my ($class, $seaData) = @_; my $dbc = II03d4c4cc7bf2ffa15f8a48790b6ab83e::IIllIIlllIIIllIl($II03d4c4cc7bf2ffa15f8a48790b6ab83e::IlIlIIlllIIlllll{$IIa67e09caf104f2e50322b7bc59b766fb::llIlIIIlIllIIIll},133,$II03d4c4cc7bf2ffa15f8a48790b6ab83e::IlIlIIlllIIlllll{$IIc01104c48d0514ef0f947c295055d82d::IIIIIIlIllIIIIll})->dbc; my @where; push @where, sprintf("banner_id = %s", $dbc->quote($seaData->{banner_id})) if $seaData->{banner_id}; my $where = join(' AND ', @where); my $data = $dbc->getRecords(<<END);
select item_id,referer,views,clicks
from jin_banner_stat
where $where
order by views desc,clicks desc
END
my @list; for my $d (@$data) { $d->{id} = II03d4c4cc7bf2ffa15f8a48790b6ab83e::IllIIlIIlIIIllll($II03d4c4cc7bf2ffa15f8a48790b6ab83e::IIlIlIlIIIlIIIII{$IIa67e09caf104f2e50322b7bc59b766fb::lllIlIlIllIIlIll},1020,$II03d4c4cc7bf2ffa15f8a48790b6ab83e::IIlIlIlIIIlIIIII{$II535843728d21206bdd21a2a084373080::lIlllIlIllIllIIl})->generate; $class->cache->store($d->{id}, $class->assume($d)); push @list, $d->{id}; } Zen->getRequest->getRequestCache->{BannerStatList} = \@list; return; } 1; 