Commit 1d59576d by xuzhenhao

增加了token的授权

1 parent a67e7ef5
Showing with 1 additions and 1 deletions
......@@ -154,7 +154,7 @@ func GetUserAccessToken(userName string) (result string, err error) {
}
userId := userInfo.(UserInfo).Id
uuid := uuid.NewV4().String()
uuid = strings.Replace(uuid, '-', "", -1)
uuid = strings.Replace(uuid, "-", "", -1)
sql := ` replace into icesimba_user_token(user_id,user_token) values(?,?)`
_, err = db.Engine.Exec(sql, userId, uuid)
if err != nil {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!