From d23014e9d9e2900e55f816463bae463473081249 Mon Sep 17 00:00:00 2001 From: jianweie code Date: Wed, 23 Aug 2023 12:48:23 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=88=86=E4=BA=AB=E7=AD=96=E7=95=A5=EF=BC=8C=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E5=87=BA=E7=8E=B0=E4=B8=A4=E4=B8=AA=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BA=92=E4=B8=BA=E5=90=84=E8=87=AA=E4=B8=8A=E7=BA=A7=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoreCms.Net.Services/User/CoreCmsUserServices.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CoreCms.Net.Services/User/CoreCmsUserServices.cs b/CoreCms.Net.Services/User/CoreCmsUserServices.cs index 24ab85f..452e974 100644 --- a/CoreCms.Net.Services/User/CoreCmsUserServices.cs +++ b/CoreCms.Net.Services/User/CoreCmsUserServices.cs @@ -287,6 +287,12 @@ namespace CoreCms.Net.Services return jm; } + if (superior.parentId == user.id) + { + jm.msg = "不允许双方互相设置为上级"; + return jm; + } + var flag = IsInvited(userId, superiorId); if (flag) {