From bae4af47f77a195a12a0437584d667465e826e12 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期一, 17 八月 2020 16:09:28 +0800
Subject: [PATCH] add log

---
 controllers/restriction.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/controllers/restriction.go b/controllers/restriction.go
index 43770d0..6df5716 100644
--- a/controllers/restriction.go
+++ b/controllers/restriction.go
@@ -81,8 +81,8 @@
 	if st == nowDate || et == nowDate {
 		return true
 	} else {
-		st, e1 := time.Parse(st, "2006-01-02")
-		et, e2 := time.Parse(et, "2006-01-02")
+		st, e1 := time.Parse("2006-01-02", st)
+		et, e2 := time.Parse("2006-01-02", et)
 		if e1 == nil && e2 == nil && st.Before(nowTime) && et.After(nowTime) {
 			return true
 		}

--
Gitblit v1.8.0