修复 父级id查询问题

This commit is contained in:
lingling 2025-02-19 11:47:46 +08:00
parent 7a2fc972a5
commit ed37564d1b
1 changed files with 2 additions and 2 deletions

View File

@ -55,9 +55,9 @@ class Task3
//判断用户绑定Whatsapp首次登录
foreach ($UserPhone as $key => $value) {
$user_id = $value->user_id;
//判定有没有父级
//判定有没有父级 这里父级没有默认是0
$user = User::find($user_id);
if (!$user) {
if ($user->f_id==0) {
continue;
}
//获取该用户的父级