From 2cdf0131f11deecf03c5ba79616a7a4b388e9499 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Wed, 23 Aug 2023 09:50:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=BD=9C=E8=80=85=E6=A0=87?= =?UTF-8?q?=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common.php | 4 ---- app/controller/Passport.php | 6 ------ app/controller/User.php | 2 -- app/middleware/CheckToken.php | 2 -- 4 files changed, 14 deletions(-) diff --git a/app/common.php b/app/common.php index 80fe7d0..ee5052f 100644 --- a/app/common.php +++ b/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 { diff --git a/app/controller/Passport.php b/app/controller/Passport.php index e0129e7..926355f 100644 --- a/app/controller/Passport.php +++ b/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() { diff --git a/app/controller/User.php b/app/controller/User.php index 6d5bd2a..96f467f 100644 --- a/app/controller/User.php +++ b/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() { diff --git a/app/middleware/CheckToken.php b/app/middleware/CheckToken.php index 585400f..8708610 100644 --- a/app/middleware/CheckToken.php +++ b/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) {