From 1a17477822d171857fe36751f21b2889bcdd351f Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Sat, 30 Mar 2024 15:18:14 +0800 Subject: [PATCH] 1 --- app/api/service/passport/Login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/service/passport/Login.php b/app/api/service/passport/Login.php index 49e7f983..425922b6 100644 --- a/app/api/service/passport/Login.php +++ b/app/api/service/passport/Login.php @@ -330,7 +330,7 @@ class Login extends BaseService return; } // 推荐人ID - $refereeId = (int)$data['refereeId'] ?? null; + $refereeId = !empty($data['refereeId']) ?? null; // 用户不存在: 创建一个新用户 $this->createUser($data['mobile'], $data['isParty'], $data['partyData'], $refereeId); }