feat: 新增

This commit is contained in:
陈狼 2025-02-23 15:52:05 +08:00
parent b90f321e53
commit e9664838ed
2 changed files with 9 additions and 3 deletions

View File

@ -21,4 +21,10 @@ class ActiveUsers extends Model
protected $primaryKey = 'id';
public $timestamps = true;
protected $fillable = [
'user_id',
'income',
'phone',
];
}

View File

@ -70,13 +70,13 @@ class Task3
$parent->today_team_income+=80;
$parent->save();
// ActiveUsers.c
$activeUsers = ActiveUsers::create([
'user_id' => $parent->id,
'phone' => $UserPhone->phone,
'income' => $UserPhone->day_score,
'phone' => $value->phone,
'income' => $value->day_score,
]);
//判定有没有父级的父级 这里父级没有默认是0
if($parent->f_id==0){
continue;