From bf549633fd8843a059eb3136ed46d514afe84fc5 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Mon, 10 Feb 2025 09:23:20 +0300 Subject: [PATCH] =?utf8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB?= =?utf8?q?=20=D0=B1=D0=B0=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/api2/controllers/ClientController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erp24/api2/controllers/ClientController.php b/erp24/api2/controllers/ClientController.php index 4638ff04..64917dbb 100644 --- a/erp24/api2/controllers/ClientController.php +++ b/erp24/api2/controllers/ClientController.php @@ -343,7 +343,7 @@ class ClientController extends BaseController { } $userEvents = UsersEvents::find()->where(['phone' => $phone])->all(); if (count($userEvents) == 5) { - $maxInd = 6; +// $maxInd = 6; // for ($i = 0; $i < 5; $i++) { // $d = date("Y-m-d", strtotime("+$i days", time())); // $dd = date("d", strtotime($d)); @@ -353,7 +353,7 @@ class ClientController extends BaseController { // break; // } // } - $bonusStart = date("Y-m-d 08:00:00", strtotime("+" . $maxInd . " days", time())); + $bonusStart = date("Y-m-d 08:00:00", strtotime("+" . 0 . " days", time())); $usersBonus = new UsersBonus; $usersBonus->date = date('Y-m-d H:i:s'); $usersBonus->tip = 'plus'; -- 2.39.5