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 * @param $data
* @return string * @return string
* @author whj
* @date 2023-08-22 15:31
*/ */
function signToken($data): string function signToken($data): string
{ {
@ -28,8 +26,6 @@ function signToken($data): string
* 验证token * 验证token
* @param $token * @param $token
* @return array|int[] * @return array|int[]
* @author whj
* @date 2023-08-22 15:31
*/ */
function checkToken($token): array 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\DataNotFoundException
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
* @author whj
* @date 2023-08-22 17:04
*/ */
public function register() public function register()
{ {
@ -60,8 +58,6 @@ class Passport extends BaseController
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
* @author whj
* @date 2023-08-22 17:04
*/ */
public function login() public function login()
{ {
@ -95,8 +91,6 @@ class Passport extends BaseController
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
* @author whj
* @date 2023-08-22 17:22
*/ */
public function retrieve() 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\DataNotFoundException
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
* @author whj
* @date 2023-08-22 18:16
*/ */
public function modifyPassword() public function modifyPassword()
{ {

2
app/middleware/CheckToken.php

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

Loading…
Cancel
Save