Browse Source

Merge branch 'feature/tmr-group' of baishaojie/tmrgo into develop

xuyiping 1 year ago
parent
commit
a82063d10c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      http/handle/restful/user.go

+ 4 - 0
http/handle/restful/user.go

@@ -1,6 +1,8 @@
 package restful
 package restful
 
 
 import (
 import (
+	"fmt"
+
 	"github.com/pkg/errors"
 	"github.com/pkg/errors"
 )
 )
 
 
@@ -42,6 +44,8 @@ func CheckUser(username, password string) (bool, error) {
 }
 }
 
 
 func GetUserInfo(username string) map[string]interface{} {
 func GetUserInfo(username string) map[string]interface{} {
+
+	fmt.Println("=====GetUserInfo=====", username)
 	valuesMap, err := Engine.SQL("SELECT * FROM  `user` WHERE `username` = ? and `enable` >0 ", username).Query().List()
 	valuesMap, err := Engine.SQL("SELECT * FROM  `user` WHERE `username` = ? and `enable` >0 ", username).Query().List()
 
 
 	if err != nil {
 	if err != nil {