forked from XiaoLFeng/XF_Index
错误更正
Signed-off-by: XiaoLFeng <gm@x-lf.cn>
This commit is contained in:
parent
a87693ac6d
commit
0e192b962e
|
@ -270,14 +270,14 @@ public function apiCustomBlogCheck(HttpRequest $request): JsonResponse
|
||||||
'userCode' => 'string|min:6|max:64|regex:#^[0-9A-Za-z]+$#',
|
'userCode' => 'string|min:6|max:64|regex:#^[0-9A-Za-z]+$#',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if ($dataCheck->fails()) {
|
if (!$dataCheck->fails()) {
|
||||||
$resultBlog = DB::table('blog_link')
|
$resultBlog = DB::table('blog_link')
|
||||||
->select('id', 'blogOwnEmail')
|
->select('id', 'blogOwnEmail')
|
||||||
->find((int)$request->id);
|
->find((int)$request->id);
|
||||||
if (!empty($resultBlog->id)) {
|
if (!empty($resultBlog->id)) {
|
||||||
// 检查输入博客是否对应
|
// 检查输入博客是否对应
|
||||||
if (!empty($resultBlog->blogOwnEmail)) {
|
if (!empty($resultBlog->blogOwnEmail)) {
|
||||||
if (strcmp($resultBlog->blogOwnEmail, $request->email) == 0) {
|
if (strcmp($resultBlog->blogOwnEmail, $request->userEmail) == 0) {
|
||||||
// 生成验证码(筛查内容)
|
// 生成验证码(筛查内容)
|
||||||
$resultVerifyCode = DB::table('code')
|
$resultVerifyCode = DB::table('code')
|
||||||
->where([
|
->where([
|
||||||
|
|
Loading…
Reference in New Issue
Block a user