no message

This commit is contained in:
hellcat committed 2025-03-27 20:08:30 +08:00
1 parent 74f61921b3
commit 5bbf50e8b2
8 files changed
+111 -5

No files matched your search

+5 -3
View File
@@ -13,6 +13,7 @@ use App\Services\Auth as AuthService;
use App\Models\Product;
use App\Models\Config;
use App\Models\UserCoupon;
use App\Services\TomTool\VisitorCount;
final class FrontController extends BaseController
{
@@ -22,12 +23,13 @@ final class FrontController extends BaseController
public function index(ServerRequest $request, Response $response, array $args): ResponseInterface
{
$sAffCode = $this->antiXss->xss_clean($args['code']);
if ($sAffCode) {
if (@$args['code']) {
$sAffCode = $this->antiXss->xss_clean($args['code']);
setcookie('affCode', $sAffCode, (time() + (86400 * 1)), "/");
}
VisitorCount::From();
$user = AuthService::getUser();
$taocan = (new Product())->where('status', '1')