|
@@ -3,7 +3,7 @@ declare (strict_types = 1);
|
|
|
|
|
|
namespace app\index;
|
|
|
|
|
|
-use app\api\exception\ApiException;
|
|
|
+use app\index\exception\ApiException;
|
|
|
use app\common\until\Token;
|
|
|
use think\App;
|
|
|
use think\exception\ValidateException;
|
|
@@ -60,7 +60,7 @@ abstract class BaseController
|
|
|
];
|
|
|
if (!in_array($this->request->baseUrl(),$route)){
|
|
|
if (empty($this->request->header('token'))) {
|
|
|
-// throw new ApiException('token不为空');
|
|
|
+ throw new ApiException('token不为空');
|
|
|
}else{
|
|
|
$token = new Token();
|
|
|
$decodeToken = $token->decodeToken();
|