no message

This commit is contained in:
hellcat committed 2025-05-01 17:50:09 +08:00
1 parent fa0049d36c
commit 5df32ca888
2 files changed
+21 -22

No files matched your search

+13 -2
View File
@@ -9,6 +9,7 @@ use App\Models\Config;
use App\Models\LoginIp;
use App\Models\Node;
use App\Models\OnlineLog;
use App\Models\Huodong;
use App\Services\Auth;
use App\Services\Captcha;
use App\Services\Reward;
@@ -38,10 +39,20 @@ final class UserController extends BaseController
if (Config::obtain('enable_checkin_captcha')) {
$captcha = Captcha::generate();
}
$oAnn = (new Ann())->orderBy('date', 'desc')->first();
$oHuodong = Huodong::DateHit();
$sHuodongStr = $oHuodong->title.":".$oHuodong->content;
$oAnn->content = str_replace("{{huodong}}", $sHuodongStr, $oAnn->content);
$oAnn->date = date("Y-m-d", strtotime($oAnn->date));
return $response->write(
$this->view()
->assign('ann', (new Ann())->orderBy('date', 'desc')->first())
->assign('ann', $oAnn)
->assign('captcha', $captcha)
->assign('class_expire_days', $class_expire_days)
->assign('UniversalSub', Subscribe::getUniversalSubLink($this->user))