Procházet zdrojové kódy

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

xuyiping před 1 rokem
rodič
revize
a82063d10c
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      http/handle/restful/user.go

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

@@ -1,6 +1,8 @@
 package restful
 
 import (
+	"fmt"
+
 	"github.com/pkg/errors"
 )
 
@@ -42,6 +44,8 @@ func CheckUser(username, password string) (bool, error) {
 }
 
 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()
 
 	if err != nil {