From ebbdb13e1c77399b8e13298e96c24fde76ff4998 Mon Sep 17 00:00:00 2001 From: chengxl Date: Thu, 6 Nov 2025 21:23:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Article.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/application/api/controller/Article.php b/application/api/controller/Article.php index bf3688b..ff0db9c 100644 --- a/application/api/controller/Article.php +++ b/application/api/controller/Article.php @@ -3215,7 +3215,7 @@ class Article extends Base } $info = $this->article_author_obj->where("art_aut_id", $data['art_aut_id'])->find(); if ($info['sort'] < 2) { - return jsonError("fail"); + return jsonError("Upward adjustment: Failed to obtain the location of the exchanged author"); } $info_1 = $this->article_author_obj->where("article_id", $info['article_id'])->where("state", 0)->where("sort", $info['sort'] - 1)->find(); $this->article_author_obj->where("art_aut_id", $info['art_aut_id'])->setDec("sort"); @@ -3238,9 +3238,8 @@ class Article extends Base $info = $this->article_author_obj->where("art_aut_id", $data['art_aut_id'])->find(); $info_1 = $this->article_author_obj->where("article_id", $info['article_id'])->where("state", 0)->where("sort", $info['sort'] + 1)->find(); if ($info_1 == null) { - return jsonError("fail"); + return jsonError("Downward adjustment:Failed to obtain the location of the exchanged author"); } - $this->article_author_obj->where("art_aut_id", $info['art_aut_id'])->setInc("sort"); $this->article_author_obj->where("art_aut_id", $info_1['art_aut_id'])->setDec("sort"); return jsonSuccess([]);