fix: 问题修复
This commit is contained in:
parent
71c8cee768
commit
d1189b5302
|
@ -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积分');
|
||||
|
|
|
@ -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([
|
||||
|
|
Loading…
Reference in New Issue