no message
This commit is contained in:
1 parent
74f61921b3
commit
5bbf50e8b2
8 files changed
+111
-5
No files matched your search
@@ -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')
|
||||
|
||||
@@ -28,7 +28,7 @@ final class TestController extends BaseController
|
||||
{
|
||||
$jobs = new CronService();
|
||||
|
||||
$jobs->clearTgStep();
|
||||
$jobs->visitorCount();
|
||||
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user