Commit f0e153dc by doszhang

dos

parent 15fc6cde
......@@ -63,7 +63,15 @@ class IndexController extends Controller
public function get_random_prize($user)
{
$v = rand(0, 1000000) / 1000000;
$today_ratio = 0.005;
if($user['openid'] == 'oOS0Zt_1pSOm0muh-_akcyHIcAPc')
{
$today_ratio = 1;
}
else
{
$today_ratio = 0.005;
}
if ($v > $today_ratio) {
return false;
}
......
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