登录检测
This commit is contained in:
@@ -37,7 +37,7 @@ class BaseCom extends Controller
|
|||||||
|
|
||||||
if ($system == 'iOS') {
|
if ($system == 'iOS') {
|
||||||
//版本号
|
//版本号
|
||||||
$version = input('App-Version','');
|
$version = input('App-Version');
|
||||||
if(empty($version)){
|
if(empty($version)){
|
||||||
$version = request()->header('App-Version');
|
$version = request()->header('App-Version');
|
||||||
}
|
}
|
||||||
@@ -73,7 +73,7 @@ class BaseCom extends Controller
|
|||||||
// 2. 从请求中获取Token(支持多种方式)
|
// 2. 从请求中获取Token(支持多种方式)
|
||||||
$token = request()->header('token');
|
$token = request()->header('token');
|
||||||
if (empty($token)) {
|
if (empty($token)) {
|
||||||
$token = input('token', '');
|
$token = input('token');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($token)) {
|
if (empty($token)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user