feat: 新增

This commit is contained in:
陈狼 2025-02-23 22:48:16 +08:00
parent 14c0b8ce60
commit 3e8fabbf3a
1 changed files with 7 additions and 5 deletions

View File

@ -65,11 +65,13 @@ class Task3
//满足则加80积分 //满足则加80积分
// UserRewardDao::base($parent->id, 5, 80, '有效用户奖励'); // UserRewardDao::base($parent->id, 5, 80, '有效用户奖励');
//vip_id等级加1,并更新数据库 //vip_id等级加1,并更新数据库
if($UserPhone->day_score<=140){
$parent->vip_id += 1; $parent->vip_id += 1;
//今天邀请人数加1 //今天邀请人数加1
$parent->today_num += 1; $parent->today_num += 1;
// $parent->today_team_income+=80; // $parent->today_team_income+=80;
$parent->save(); $parent->save();
}
//判断今天有没有数据 //判断今天有没有数据
$todayStart = Carbon::now()->startOfDay(); // 今天00:00:00 $todayStart = Carbon::now()->startOfDay(); // 今天00:00:00
$todayEnd = Carbon::now()->endOfDay(); // 今天23:59:59 $todayEnd = Carbon::now()->endOfDay(); // 今天23:59:59