Merge branch 'master' of http://111.229.174.37:3000/Food/food_server
This commit is contained in:
commit
2d522ef98a
@ -16,11 +16,6 @@ class PublicController extends Controller
|
||||
{
|
||||
// 获取请求头中的 Token
|
||||
$token = isset($_SERVER['HTTP_TOKEN']) ? $_SERVER['HTTP_TOKEN'] : null;
|
||||
// 如果 token 不存在,返回错误信息
|
||||
if (empty($token)) {
|
||||
echo json_encode(array('status' => -1, 'msg' => 'Token 不存在或无效!'));
|
||||
exit();
|
||||
}
|
||||
// 获取 jwt 密钥
|
||||
$jwtKey = C('jwtKey');
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user