WH01243 %!s(int64=2) %!d(string=hai) anos
pai
achega
e93b585e3e
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      util/data.go

+ 3 - 1
util/data.go

@@ -12,8 +12,10 @@ func ActivityTime(beginDate interface{}) bool {
 		if timeData >= fmt.Sprint(beginDate) {
 			return true
 		}
+		return false
+	} else {
+		return true
 	}
-	return false
 }
 
 //活动创建及修改时间需大于当前时间 不需要改