【类 型】:

【主	题】:
【描	述】:
	[原因]:
	[过程]:
	[影响]:
【结	束】

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
This commit is contained in:
tk 2024-06-05 16:47:24 +08:00
parent 8bd1f988fc
commit 76a9a35aed

View File

@ -32,6 +32,10 @@ class PublicController extends Controller
// 其他 JWT 解码错误
echo json_encode(array('status' => -1, 'msg' => 'Token 解码失败: ' . $e->getMessage()));
exit();
} catch (\TypeError $e) {
// 处理 Token 为 null 或者不是字符串的情况
echo json_encode(array('status' => -1, 'msg' => 'Token 无效: ' . $e->getMessage()));
exit();
}
}
//远程调取页面 访问API