}
$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));
// 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';