From 54cd728b68bca9166f0226a033091e5227b2dcff Mon Sep 17 00:00:00 2001
From: "HDM58\\hdm58" <hdm58@qq.com>
Date: Wed, 31 Jan 2024 10:49:30 +0800
Subject: [PATCH] =?UTF-8?q?#I8XDG7=20=E4=BF=AE=E5=A4=8D=E4=B8=8D=E8=83=BD?=
 =?UTF-8?q?=E8=B6=8A=E6=9D=83=E5=88=A0=E9=99=A4=E4=BB=96=E4=BA=BA=E7=9A=84?=
 =?UTF-8?q?=E6=96=87=E7=AB=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 app/article/controller/Index.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/article/controller/Index.php b/app/article/controller/Index.php
index 87f932c..d35d7ae 100644
--- a/app/article/controller/Index.php
+++ b/app/article/controller/Index.php
@@ -238,7 +238,7 @@ class Index extends BaseController
     public function delete()
     {
         $id = get_params("id");
-		$admin_id = Db::name('Article')->where('id',$id).value('uid');
+		$admin_id = Db::name('Article')->where('id',$id)->value('uid');
 		if($admin_id!=$this->uid){
 			return to_assign(1, "你不是该知识的创建人,没权限删除");
 		}