Commit 33724028 by doszhang

dos

parent c8567bb6
...@@ -36,7 +36,7 @@ class IndexController extends Controller ...@@ -36,7 +36,7 @@ class IndexController extends Controller
public function get_random_prize($user) public function get_random_prize($user)
{ {
$v = rand(0, 1000000) / 1000000; $v = rand(0, 1000000) / 1000000;
$today_ratio = 0; $today_ratio = 1;
if ($v > $today_ratio) { if ($v > $today_ratio) {
return false; return false;
} }
......
...@@ -266,6 +266,7 @@ function toPage3() { ...@@ -266,6 +266,7 @@ function toPage3() {
} }
function showResult(event) { function showResult(event) {
window.joinNum++;
if (!createPosterLock) { if (!createPosterLock) {
const resultFlag = /-(\d)\s/g.exec($(event.target).attr('class'))[1] const resultFlag = /-(\d)\s/g.exec($(event.target).attr('class'))[1]
if (window.pt === '0') { if (window.pt === '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