【类 型】:
【主 题】: 【描 述】: [原因]: [过程]: [影响]: 【结 束】 # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动
This commit is contained in:
parent
678eff776c
commit
8bd1f988fc
@ -16,11 +16,6 @@ class PublicController extends Controller
|
|||||||
{
|
{
|
||||||
// 获取请求头中的 Token
|
// 获取请求头中的 Token
|
||||||
$token = isset($_SERVER['HTTP_TOKEN']) ? $_SERVER['HTTP_TOKEN'] : null;
|
$token = isset($_SERVER['HTTP_TOKEN']) ? $_SERVER['HTTP_TOKEN'] : null;
|
||||||
// 如果 token 不存在,返回错误信息
|
|
||||||
if (empty($token)) {
|
|
||||||
echo json_encode(array('status' => -1, 'msg' => 'Token 不存在或无效!'));
|
|
||||||
exit();
|
|
||||||
}
|
|
||||||
// 获取 jwt 密钥
|
// 获取 jwt 密钥
|
||||||
$jwtKey = C('jwtKey');
|
$jwtKey = C('jwtKey');
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user