From 62bd99d03c25ff02f101a4522cf1cbd8430b31c3 Mon Sep 17 00:00:00 2001
From: yinbentan <yinbentan@live.com>
Date: 星期二, 16 七月 2024 20:11:14 +0800
Subject: [PATCH] 修改变量,庄口类型默认值从0变更为1

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

diff --git a/controllers/dict.go b/controllers/dict.go
index 2a550cf..084e88a 100644
--- a/controllers/dict.go
+++ b/controllers/dict.go
@@ -121,7 +121,7 @@
 	}
 
 	search := models.NewDictSearch()
-	if params.DictType != nil {
+	if params.DictType > 0 {
 		search = search.SetDictType(params.DictType)
 	}
 	list, err := search.SetKeyword(params.Keyword).FindAll()

--
Gitblit v1.8.0