no message

This commit is contained in:
hellcat 2025-07-27 16:56:00 +08:00
parent 46f37caa42
commit 1fa8f977cc

View File

@ -34,9 +34,9 @@ class ExecController extends Controller
} }
// 期望每小时一次 // 期望每小时一次
if (rand(1, 2) == 1) { // if (rand(1, 2) == 1) {
$this->likeAuto(); $this->likeAuto();
} // }
$this->freenodeUp(); $this->freenodeUp();
@ -186,16 +186,16 @@ class ExecController extends Controller
public function likeAuto () public function likeAuto ()
{ {
echo "\n#start# like auto \n"; 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')) $r = ArticleList::where('code', date('Ymd'))
->increment('like', 1); ->increment('like', $iRand);
echo $r; echo $r;
} // }
echo '\n'; echo '\n';
echo "#end# like auto \n"; echo "#end# like auto \n";
} }