fix: 问题修复

This commit is contained in:
陈狼 2025-02-17 16:54:12 +08:00
parent 71c8cee768
commit d1189b5302
2 changed files with 4 additions and 4 deletions

View File

@ -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积分');

View File

@ -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([