浏览代码

project: 测试userInfo

Yi 1 年之前
父节点
当前提交
e83726cb14
共有 1 个文件被更改,包括 4 次插入0 次删除
  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 {