From 4048ee982ba866cff2741344475e1a8677952294 Mon Sep 17 00:00:00 2001 From: juzeon <812312770@qq.com> Date: Fri, 24 Feb 2023 22:24:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0files=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/po/checkin.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/data/po/checkin.go b/data/po/checkin.go index 175f3fe..d4c743e 100644 --- a/data/po/checkin.go +++ b/data/po/checkin.go @@ -1,8 +1,6 @@ package po import ( - "integrity-checkin/pkg/util" - "strings" "time" ) @@ -40,10 +38,10 @@ type UserActivityForm struct { } func (u UserActivityForm) Validate() error { - for _, filename := range strings.Split(u.Files, ",") { - if err := util.ValidateFilename(filename); err != nil { - return err - } - } + //for _, filename := range strings.Split(u.Files, ",") { + // if err := util.ValidateFilename(filename); err != nil { + // return err + // } + //} return nil }