From 21e588b65ae3cf524426ebbd22f1c9536a44c10b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=8B=BC?= <2468023037@qq.com> Date: Tue, 18 Feb 2025 09:49:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=94=A8=E6=88=B7=E9=82=80=E8=AF=B7?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E4=B8=8B=E7=BA=A7=E5=B9=B6=E4=B8=94=E7=BB=91?= =?UTF-8?q?=E5=AE=9AWhatsapp=E9=A6=96=E6=AC=A1=E7=99=BB=E5=BD=95=EF=BC=8C?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=97=B6=E9=97=B4=E8=B6=85=E8=BF=876?= =?UTF-8?q?=E5=B0=8F=E6=97=B6=E4=B8=BA=E6=9C=89=E6=95=88=E4=B8=8B=E7=BA=A7?= =?UTF-8?q?=EF=BC=8C=E6=AF=8F=E4=B8=AA=E8=AE=A1=E8=B4=B980=E7=A7=AF?= =?UTF-8?q?=E5=88=86=E5=A5=96=E5=8A=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- process/Task3.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/process/Task3.php b/process/Task3.php index 3cc8aa9..08ad775 100644 --- a/process/Task3.php +++ b/process/Task3.php @@ -56,8 +56,10 @@ class Task3 foreach ($UserPhone as $key => $value) { $user_id = $value->user_id; $user = User::find($user_id); + //获取该用户的父级 + $parent = User::find($user->f_id); //满足则加80积分 - UserRewardDao::base($user_id, 6, 80, '任务佣金'); + UserRewardDao::base($parent->username, 6, 80, '任务佣金'); //vip_id等级加1,并更新数据库 $user->vip_id += 1; //今天邀请人数加1