no message
This commit is contained in:
1 parent
fa0049d36c
commit
5df32ca888
2 files changed
+21
-22
No files matched your search
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user