feat: 新增
This commit is contained in:
parent
b90f321e53
commit
e9664838ed
@ -21,4 +21,10 @@ class ActiveUsers extends Model
|
|||||||
protected $primaryKey = 'id';
|
protected $primaryKey = 'id';
|
||||||
|
|
||||||
public $timestamps = true;
|
public $timestamps = true;
|
||||||
|
|
||||||
|
protected $fillable = [
|
||||||
|
'user_id',
|
||||||
|
'income',
|
||||||
|
'phone',
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
@ -70,13 +70,13 @@ class Task3
|
|||||||
$parent->today_team_income+=80;
|
$parent->today_team_income+=80;
|
||||||
$parent->save();
|
$parent->save();
|
||||||
// ActiveUsers.c
|
// ActiveUsers.c
|
||||||
|
|
||||||
$activeUsers = ActiveUsers::create([
|
$activeUsers = ActiveUsers::create([
|
||||||
'user_id' => $parent->id,
|
'user_id' => $parent->id,
|
||||||
'phone' => $UserPhone->phone,
|
'phone' => $value->phone,
|
||||||
'income' => $UserPhone->day_score,
|
'income' => $value->day_score,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
||||||
//判定有没有父级的父级 这里父级没有默认是0
|
//判定有没有父级的父级 这里父级没有默认是0
|
||||||
if($parent->f_id==0){
|
if($parent->f_id==0){
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user