From a4c86b6b9d61bec99bff97415ac25e1fd36fe28a Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期日, 09 四月 2023 19:17:56 +0800
Subject: [PATCH] 优化

---
 management/guns-admin/src/main/webapp/static/modular/system/tYouTui/tYouTui_info.js |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/management/guns-admin/src/main/webapp/static/modular/system/tYouTui/tYouTui_info.js b/management/guns-admin/src/main/webapp/static/modular/system/tYouTui/tYouTui_info.js
index bd32ace..e182b88 100644
--- a/management/guns-admin/src/main/webapp/static/modular/system/tYouTui/tYouTui_info.js
+++ b/management/guns-admin/src/main/webapp/static/modular/system/tYouTui/tYouTui_info.js
@@ -22,6 +22,10 @@
             validators: {
                 notEmpty: {
                     message: '兑换条件不能为空'
+                },
+                regexp: {
+                    regexp: /^[1-9]\d*$/,
+                    message: '请输入大于0的正整数'
                 }
             }
         },
@@ -29,6 +33,10 @@
             validators: {
                 notEmpty: {
                     message: '优推距离不能为空'
+                },
+                regexp: {
+                    regexp: /^[1-9]\d*$/,
+                    message: '请输入大于0的正整数'
                 }
             }
         },
@@ -36,6 +44,10 @@
             validators: {
                 notEmpty: {
                     message: '有效期不能为空'
+                },
+                regexp: {
+                    regexp: /^[1-9]\d*$/,
+                    message: '请输入大于0的正整数'
                 }
             }
         },

--
Gitblit v1.7.1