From b691331fe178e1fa6725d8ae0b076c05def5a226 Mon Sep 17 00:00:00 2001 From: lingling <1077478963@qq.com> Date: Mon, 17 Feb 2025 23:22:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=B8=8A=E5=8F=B7=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/TaskController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controller/api/TaskController.php b/app/controller/api/TaskController.php index 4f17992..f07d8aa 100644 --- a/app/controller/api/TaskController.php +++ b/app/controller/api/TaskController.php @@ -78,7 +78,7 @@ class TaskController $user_id = $request->data['id']; $phone = $request->post('phone'); $GetLodeLog = GetLodeLog::where('phone', $phone)->first(); - if ($GetLodeLog->status == 0) { + if ($GetLodeLog->status == 0&&!empty($GetLodeLog)) { return ApiResponseApp::success([]); } if ($GetLodeLog->status == 1) { @@ -89,7 +89,7 @@ class TaskController /** * 这里查询是否上号成功 2是等待上号 */ - if ($GetLodeLog->status == 2) { + if ($GetLodeLog->status == 2&&!empty($GetLodeLog)) { $ws_build_status = SendCode::get_ws_status($phone) == 0; //上号成功 if (UserPhone::where('phone', $phone)->count() == 0 && $ws_build_status) { @@ -102,7 +102,7 @@ class TaskController $UserPhone->save(); $GetLodeLog->delete(); //首次成功关联,赠送50积分 - // $this->first_phone($phone, $user_id); + $this->first_phone($phone, $user_id); } return ApiResponseApp::success([]);