This commit is contained in:
root 2019-10-25 02:26:34 +08:00
parent 87a31b644a
commit 4604e6b053

View File

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