Browse Source

删除作者标记

master
wanghongjun 2 years ago
parent
commit
2cdf0131f1
  1. 4
      app/common.php
  2. 6
      app/controller/Passport.php
  3. 2
      app/controller/User.php
  4. 2
      app/middleware/CheckToken.php

4
app/common.php

@ -7,8 +7,6 @@ use Firebase\JWT\Key;
* 生成验签
* @param $data
* @return string
* @author whj
* @date 2023-08-22 15:31
*/
function signToken($data): string
{
@ -28,8 +26,6 @@ function signToken($data): string
* 验证token
* @param $token
* @return array|int[]
* @author whj
* @date 2023-08-22 15:31
*/
function checkToken($token): array
{

6
app/controller/Passport.php

@ -16,8 +16,6 @@ class Passport extends BaseController
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author whj
* @date 2023-08-22 17:04
*/
public function register()
{
@ -60,8 +58,6 @@ class Passport extends BaseController
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author whj
* @date 2023-08-22 17:04
*/
public function login()
{
@ -95,8 +91,6 @@ class Passport extends BaseController
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author whj
* @date 2023-08-22 17:22
*/
public function retrieve()
{

2
app/controller/User.php

@ -17,8 +17,6 @@ class User extends BaseController
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author whj
* @date 2023-08-22 18:16
*/
public function modifyPassword()
{

2
app/middleware/CheckToken.php

@ -15,8 +15,6 @@ class CheckToken
* @param $request
* @param \Closure $next
* @return mixed|\think\response\Json
* @author whj
* @date 2023-08-22 14:57
*/
public function handle($request, \Closure $next)
{

Loading…
Cancel
Save