From 3e8fabbf3ad2e4965d39443a2239ac4780cdebb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=8B=BC?= <2468023037@qq.com> Date: Sun, 23 Feb 2025 22:48:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- process/Task3.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/process/Task3.php b/process/Task3.php index ce372b8..3e8a8bd 100644 --- a/process/Task3.php +++ b/process/Task3.php @@ -65,11 +65,13 @@ class Task3 //满足则加80积分 // UserRewardDao::base($parent->id, 5, 80, '有效用户奖励'); //vip_id等级加1,并更新数据库 - $parent->vip_id += 1; - //今天邀请人数加1 - $parent->today_num += 1; - // $parent->today_team_income+=80; - $parent->save(); + if($UserPhone->day_score<=140){ + $parent->vip_id += 1; + //今天邀请人数加1 + $parent->today_num += 1; + // $parent->today_team_income+=80; + $parent->save(); + } //判断今天有没有数据 $todayStart = Carbon::now()->startOfDay(); // 今天00:00:00 $todayEnd = Carbon::now()->endOfDay(); // 今天23:59:59