From 5f37dc3fac7e65e19ea02303243c4fd107f5f5cb Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期五, 14 六月 2024 19:41:56 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/2.0' into 2.0

---
 cloud-server-management/src/main/webapp/static/modular/system/benefits/tBenefitsVideos_add.js |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/benefits/tBenefitsVideos_add.js b/cloud-server-management/src/main/webapp/static/modular/system/benefits/tBenefitsVideos_add.js
index e8bd949..0a9776d 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/benefits/tBenefitsVideos_add.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/benefits/tBenefitsVideos_add.js
@@ -282,13 +282,12 @@
         data: JSON.stringify(data),
         contentType: "application/json",
         success: function (response) {
-            if (response === 500){
+            if (!response){
                 Feng.error("所选视频已经存在于当前福利视频分类下!");
-                window.parent.TQuestion.table.refresh();
-                TQuestion.close();
-
             }else{
                 Feng.success("添加成功");
+                window.parent.TQuestion.table.refresh();
+                TQuestion.close();
             }
         },
         error: function (xhr, status, error) {
@@ -314,7 +313,13 @@
         data: JSON.stringify(data),
         contentType: "application/json",
         success: function (response) {
-            Feng.success("添加成功");
+            if (!response){
+                Feng.error("所选视频已经存在于当前福利视频分类下!");
+            }else{
+                Feng.success("编辑成功");
+                window.parent.TQuestion.table.refresh();
+                TQuestion.close();
+            }
         },
         error: function (xhr, status, error) {
             Feng.error("添加失败!" + error);

--
Gitblit v1.7.1