
thinkphp
爱干净.607
这个作者很懒,什么都没留下…
展开
-
phpthink6 前后端验证时间戳和签名认证
后端中间件验证class Safe{ /** * 处理请求 * * @param \think\Request $request * @param \Closure $next * @return Response */ public function handle($request, \Closure $next) { try { // #原创 2022-02-14 20:47:38 · 1093 阅读 · 0 评论 -
thinkphp6 实现验证码 把session换成更改为cache缓存
更改session原创 2021-12-22 20:10:39 · 599 阅读 · 0 评论 -
thinkphp6 集成JWT
thinkphp6 使用JWT生成token 进行验证原创 2021-12-22 20:02:30 · 531 阅读 · 0 评论 -
thinkphp6 公共方法
<?php// 这是系统自动生成的公共文件//公共响应函数if (!function_exists("responses")) { function responses($code, $msg, $data): \think\response\Json { return json([ 'code' => $code, 'msg' => $msg, 'data' =&g...原创 2021-12-02 13:18:58 · 763 阅读 · 0 评论