Browse Source

消息分类查询修改

renjiaojiao 1 year ago
parent
commit
161c6104b2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/service/config/config.go

+ 1 - 1
src/service/config/config.go

@@ -231,7 +231,7 @@ func init() {
 
 func GetMsgType() {
 	//查询消息分类
-	column := Msg.SelectBySql("SELECT * FROM `message_column` WHERE msg_type > 0 ORDER BY sequence ASC")
+	column := Msg.SelectBySql("SELECT name,switch FROM message_group WHERE group_id >0 ORDER BY sequence ASC")
 	if column != nil && len(*column) > 0 {
 		var msgArr []ChildData
 		for _, val := range *column {