Commit 39b6a804 by doszhang

dos

parents 45205137 52fd8ccc
......@@ -251,6 +251,35 @@ class IndexController extends Controller
return $prize;
}
}
public function prizenum () {
if($_GET['password'] != 'UUvjQ1AT9fNwYlmNGEe1TSqbin7tClIg')
{
header("HTTP/1.0 404 Not Found");
exit;
}
$p1 = M('prize')->where(array(
'is_get' => 1,
'prize_type' => 1
))->count();
$p2 = M('prize')->where(array(
'is_get' => 1,
'prize_type' => 2
))->count();
$p3 = M('prize')->where(array(
'is_get' => 1,
'prize_type' => 3
))->count();
header('Content-Type: text/html; charset=utf-8');
echo '优酷:' . $p1 . '<br />';
echo '2元:' . $p2 . '<br />';
echo '1元:' . $p3 . '<br />';
}
// public function defaultStatus() {
// if($_GET['password'] != 'UUvjQ1AT9fNwYlmNGEe1TSqbin7tClIg')
......@@ -262,7 +291,6 @@ class IndexController extends Controller
// 'tel' => NULL,
// 'is_prize' => 0
// ));
// M('prize')->where('1=1')->save(array(
// 'take_time' => 0,
// 'user_id' => 0,
......
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