From d1189b53025a60985e3831b672a93984cff86a86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=8B=BC?= <2468023037@qq.com> Date: Mon, 17 Feb 2025 16:54:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/TaskController.php | 2 +- app/controller/api/UserbankController.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controller/api/TaskController.php b/app/controller/api/TaskController.php index d1b487d..039ab7f 100644 --- a/app/controller/api/TaskController.php +++ b/app/controller/api/TaskController.php @@ -190,7 +190,7 @@ class TaskController public static function first_phone($phone,$user_id) { //查找数据库中是否存在该手机号 - $user_phone = UserPhone::where('phone', $phone)->first(); + $user_phone = PhoneLog::where('phone', $phone)->first(); //如果不存在则送用户50积分 if (!$user_phone) { UserRewardDao::base($user_id, 4, 50, '首次关联此手机号送50积分'); diff --git a/app/controller/api/UserbankController.php b/app/controller/api/UserbankController.php index d5a5745..bafce9d 100644 --- a/app/controller/api/UserbankController.php +++ b/app/controller/api/UserbankController.php @@ -47,9 +47,9 @@ class UserbankController $password = $request->post('password'); $user_id=$request->data['id']; $user=User::find($user_id); - if (!password_verify($password, $user->password)) { - return ApiResponseApp::error('登录密码错误'); - } + // if (!password_verify($password, $user->password)) { + // return ApiResponseApp::error('登录密码错误'); + // } $userbank = Userbank::where('user_id',$user_id)->first(); if ($userbank) { $userbank->update([