|
@@ -597,7 +597,7 @@ class LoginController extends Controller
|
|
Cache::put($key, [ 'value' => $value], $expiredAt); // 缓存验证码 10分钟过期。::
|
|
Cache::put($key, [ 'value' => $value], $expiredAt); // 缓存验证码 10分钟过期。::
|
|
return $this->success($value);
|
|
return $this->success($value);
|
|
}
|
|
}
|
|
- public function banLoginExcel(Request $request){
|
|
|
|
|
|
+ public function neikuLogin(Request $request){
|
|
$phone=$request->input('phone');
|
|
$phone=$request->input('phone');
|
|
$codeKey=$request->input('codeKey');
|
|
$codeKey=$request->input('codeKey');
|
|
$code=$request->input('code');
|
|
$code=$request->input('code');
|
|
@@ -611,6 +611,10 @@ class LoginController extends Controller
|
|
$value=Str::random(16);
|
|
$value=Str::random(16);
|
|
$expiredAt = Carbon::now()->addMinutes(10);
|
|
$expiredAt = Carbon::now()->addMinutes(10);
|
|
$key=$value;
|
|
$key=$value;
|
|
|
|
+ DB::connection('mysql_zb')
|
|
|
|
+ ->table('banzuis')
|
|
|
|
+ ->where('m_mobile',$phone)
|
|
|
|
+ ->update(['code'=>$value]);
|
|
Cache::put($key, [ 'value' => $value], $expiredAt); // 缓存验证码 10分钟过期。::
|
|
Cache::put($key, [ 'value' => $value], $expiredAt); // 缓存验证码 10分钟过期。::
|
|
return $this->success($value);
|
|
return $this->success($value);
|
|
}
|
|
}
|