|
|
@@ -125,9 +125,10 @@ func (a Auth) GenVFCode(codeTypeInt int, phone string, ip string,
|
|
|
}
|
|
|
|
|
|
func (a Auth) PhoneSignIn(phone string, smsCode string, ip string) (
|
|
|
- sess *model.Session, err error) {
|
|
|
+ s *model.Session, err error) {
|
|
|
sm := session.GetSessionManager()
|
|
|
s_, err := sm.CreateSession(strconv.Itoa(userId), src, time.Now().Add(time.Hour*24*5))
|
|
|
+ s = model.NewSession(s_)
|
|
|
//sess = NewSession
|
|
|
//
|
|
|
//gorm.VFCodeDAO{}.CheckVFCode(model.VFCodeCodeTypeLogin, phone, code)
|