reduce NoL in redirect method
This commit is contained in:
parent
8477aba87b
commit
4b0a6cad1d
1 changed files with 1 additions and 6 deletions
|
@ -76,12 +76,7 @@ class NotesController extends Controller
|
||||||
*/
|
*/
|
||||||
public function redirect($decId)
|
public function redirect($decId)
|
||||||
{
|
{
|
||||||
$numbers = new Numbers();
|
return redirect(config('app.url') . '/notes/' . (new Numbers())->numto60($decId));
|
||||||
$realId = $numbers->numto60($decId);
|
|
||||||
|
|
||||||
$url = config('app.url') . '/notes/' . $realId;
|
|
||||||
|
|
||||||
return redirect($url);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue