|
|
|
@ -10,6 +10,7 @@ import (
|
|
|
|
|
"dsSso/Utils/LogUtil"
|
|
|
|
|
"dsSso/models"
|
|
|
|
|
"fmt"
|
|
|
|
|
"time"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var loginModel Model.Selector
|
|
|
|
@ -97,6 +98,7 @@ func WriteLoginLog(identityId string, personId string, ip string, loginState int
|
|
|
|
|
tLog.IpAddress = ip
|
|
|
|
|
tLog.LoginName = loginName
|
|
|
|
|
tLog.LoginState = int32(loginState)
|
|
|
|
|
tLog.LoginTime = time.Now()
|
|
|
|
|
_, err := db.Insert(tLog)
|
|
|
|
|
if err != nil {
|
|
|
|
|
fmt.Println(err.Error())
|
|
|
|
|