mirror of
https://github.com/v2board/v2board.git
synced 2025-01-31 02:29:14 +08:00
update
This commit is contained in:
parent
87a31b644a
commit
4604e6b053
@ -1,11 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Server;
|
namespace App\Http\Controllers\Server;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller as BaseController;
|
use App\Http\Controllers\Controller as BaseController;
|
||||||
|
|
||||||
class Controller extends BaseController
|
class Controller extends BaseController
|
||||||
{
|
{
|
||||||
public function __construct() {
|
public function __construct(Request $request) {
|
||||||
$token = $request->input('token');
|
$token = $request->input('token');
|
||||||
if (empty($token)) {
|
if (empty($token)) {
|
||||||
abort(500, 'token is null');
|
abort(500, 'token is null');
|
||||||
|
Loading…
Reference in New Issue
Block a user