From 903260ea14ea47c375cac639aac6a21fc8c43db0 Mon Sep 17 00:00:00 2001
From: wzp <2040239371@qq.com>
Date: 星期五, 16 十二月 2022 09:54:20 +0800
Subject: [PATCH] 最新

---
 web/web/GwProduct.ashx |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/web/web/GwProduct.ashx b/web/web/GwProduct.ashx
index 1c965d3..b8f3d18 100644
--- a/web/web/GwProduct.ashx
+++ b/web/web/GwProduct.ashx
@@ -265,7 +265,7 @@
         int ctGroupid = 0;
         int price = 0;
         int givingNum = 0;
-            
+
         string parentId = context.GetString("parentId", "");
         string path = "";
         if (string.IsNullOrEmpty(parentId) )
@@ -453,9 +453,16 @@
         int ctGroupid = 0;
         int price = 0;
         int givingNum = 0;
-            
+
         string parentId = context.GetString("parentId", "");
         string path = "";
+
+        if (id == parentId)
+        {
+            throw new ArgumentException("鐖剁骇鍒嗙被id涓嶈兘閫夊綋鍓嶇被鍒紒璇烽噸鏂伴�夋嫨");
+        }
+
+
         if (string.IsNullOrEmpty(parentId) )
         {
             path = "0";

--
Gitblit v1.9.1