From 04ba0d38d00ef12d3ca255330018ac1236b0d327 Mon Sep 17 00:00:00 2001 From: lingling <1077478963@qq.com> Date: Sat, 8 Mar 2025 20:46:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20Task3=20=E7=B1=BB?= =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E7=94=A8=E6=88=B7=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E6=80=A7=E6=A3=80=E6=9F=A5=E4=BB=A5=E9=81=BF=E5=85=8D=E7=A9=BA?= =?UTF-8?q?=E6=8C=87=E9=92=88=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- process/Task3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/Task3.php b/process/Task3.php index b88444c..0cddb61 100644 --- a/process/Task3.php +++ b/process/Task3.php @@ -28,7 +28,7 @@ class Task3 $user_id = $value->user_id; //判定有没有父级 这里父级没有默认是0 $user = User::find($user_id); - if ($user->f_id==0) { + if (!empty($user)&&$user->f_id==0) { continue; } //获取该用户的父级