no message
This commit is contained in:
parent
46f37caa42
commit
1fa8f977cc
@ -34,9 +34,9 @@ class ExecController extends Controller
|
||||
}
|
||||
|
||||
// 期望每小时一次
|
||||
if (rand(1, 2) == 1) {
|
||||
// if (rand(1, 2) == 1) {
|
||||
$this->likeAuto();
|
||||
}
|
||||
// }
|
||||
|
||||
$this->freenodeUp();
|
||||
|
||||
@ -186,16 +186,16 @@ class ExecController extends Controller
|
||||
public function likeAuto ()
|
||||
{
|
||||
echo "\n#start# like auto \n";
|
||||
$iRand = rand(1, 2);
|
||||
$iRand = rand(0, 3);
|
||||
|
||||
if ($iRand === 1) {
|
||||
// if ($iRand === 1) {
|
||||
|
||||
$r = ArticleList::where('code', date('Ymd'))
|
||||
->increment('like', 1);
|
||||
->increment('like', $iRand);
|
||||
|
||||
echo $r;
|
||||
|
||||
}
|
||||
// }
|
||||
echo '\n';
|
||||
echo "#end# like auto \n";
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user