Commit ca619e8a by doszhang

dos

parent 2e768373
...@@ -151,7 +151,7 @@ class IndexController extends Controller ...@@ -151,7 +151,7 @@ class IndexController extends Controller
{ {
session_start(); session_start();
$v = rand(0, 1000000) / 1000000; $v = rand(0, 1000000) / 1000000;
$today_ratio = 0.9; $today_ratio = 0.5;
if ($v > $today_ratio) { if ($v > $today_ratio) {
return false; return false;
} }
...@@ -236,28 +236,28 @@ class IndexController extends Controller ...@@ -236,28 +236,28 @@ class IndexController extends Controller
SignedCookie::set_cookie($this->cookie_uid_key, 'oVsrlt0zUWMLvMx2-KPGVmY2I-Xc', C('cookie_sign'), 86400 * 60); SignedCookie::set_cookie($this->cookie_uid_key, 'oVsrlt0zUWMLvMx2-KPGVmY2I-Xc', C('cookie_sign'), 86400 * 60);
} }
public function addprize() { // public function addprize() {
for($i = 0;$i < 1000;$i++) // for($i = 0;$i < 1000;$i++)
{ // {
M('prize')->add(array( // M('prize')->add(array(
'type' => 2, // 'type' => 2,
'prize_type' => 3, // 'prize_type' => 3,
'prize_name' => '1元全网手机话费' // 'prize_name' => '1元全网手机话费'
)); // ));
if($i < 500) { // if($i < 500) {
M('prize')->add(array( // M('prize')->add(array(
'type' => 2, // 'type' => 2,
'prize_type' => 2, // 'prize_type' => 2,
'prize_name' => '2元全网手机话费' // 'prize_name' => '2元全网手机话费'
)); // ));
} if($i < 25) { // } if($i < 25) {
M('prize')->add(array( // M('prize')->add(array(
'type' => 1, // 'type' => 1,
'prize_type' => 1, // 'prize_type' => 1,
'prize_name' => '优酷VIP视频月卡' // 'prize_name' => '优酷VIP视频月卡'
)); // ));
} // }
} // }
} // }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment