Commit eb1b53fc by doszhang

Update IndexController.class.php

parent 90b4d3f8
...@@ -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.3; $today_ratio = 0.4;
if ($v > $today_ratio) { if ($v > $today_ratio) {
return false; return false;
} }
...@@ -185,17 +185,17 @@ class IndexController extends Controller ...@@ -185,17 +185,17 @@ class IndexController extends Controller
else if($date == '20191225') else if($date == '20191225')
{ {
if ($type == 1) { if ($type == 1) {
if ($c >= 10) { if ($c >= 22) {
continue; continue;
} }
} }
else if ($type == 2) { else if ($type == 2) {
if ($c >= 200) { if ($c >= 450) {
continue; continue;
} }
} }
else if ($type == 3) { else if ($type == 3) {
if ($c >= 520) { if ($c >= 1170) {
continue; continue;
} }
} }
...@@ -203,17 +203,17 @@ class IndexController extends Controller ...@@ -203,17 +203,17 @@ class IndexController extends Controller
else if($date == '20191226') else if($date == '20191226')
{ {
if ($type == 1) { if ($type == 1) {
if ($c >= 3) { if ($c >= 25) {
continue; continue;
} }
} }
else if ($type == 2) { else if ($type == 2) {
if ($c >= 50) { if ($c >= 500) {
continue; continue;
} }
} }
else if ($type == 3) { else if ($type == 3) {
if ($c >= 130) { if ($c >= 1300) {
continue; continue;
} }
} }
...@@ -283,15 +283,15 @@ class IndexController extends Controller ...@@ -283,15 +283,15 @@ class IndexController extends Controller
} }
else if($date == '20191225') else if($date == '20191225')
{ {
echo '优酷:' . $p1 . '/10' . '<br />'; echo '优酷:' . $p1 . '/22' . '<br />';
echo '2元:' . $p2 . '/200' . '<br />'; echo '2元:' . $p2 . '/450' . '<br />';
echo '1元:' . $p3 . '/520' . '<br />'; echo '1元:' . $p3 . '/1170' . '<br />';
} }
else if($date == '20191226') else if($date == '20191226')
{ {
echo '优酷:' . $p1 . '/3' . '<br />'; echo '优酷:' . $p1 . '/25' . '<br />';
echo '2元:' . $p2 . '/50' . '<br />'; echo '2元:' . $p2 . '/500' . '<br />';
echo '1元:' . $p3 . '/130' . '<br />'; echo '1元:' . $p3 . '/1300' . '<br />';
} }
} }
......
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