From 0e192b962e23d62653a5c694f81e46266f598dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AD=B1=E9=94=8Bxiao=5Flfeng?= Date: Fri, 30 Jun 2023 10:18:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=9B=B4=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: XiaoLFeng --- app/Http/Controllers/Function/Link.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Function/Link.php b/app/Http/Controllers/Function/Link.php index f48ec26..e0b69e4 100644 --- a/app/Http/Controllers/Function/Link.php +++ b/app/Http/Controllers/Function/Link.php @@ -270,14 +270,14 @@ public function apiCustomBlogCheck(HttpRequest $request): JsonResponse 'userCode' => 'string|min:6|max:64|regex:#^[0-9A-Za-z]+$#', ]); - if ($dataCheck->fails()) { + if (!$dataCheck->fails()) { $resultBlog = DB::table('blog_link') ->select('id', 'blogOwnEmail') ->find((int)$request->id); if (!empty($resultBlog->id)) { // 检查输入博客是否对应 if (!empty($resultBlog->blogOwnEmail)) { - if (strcmp($resultBlog->blogOwnEmail, $request->email) == 0) { + if (strcmp($resultBlog->blogOwnEmail, $request->userEmail) == 0) { // 生成验证码(筛查内容) $resultVerifyCode = DB::table('code') ->where([