|
@@ -319,13 +319,14 @@ func (l *Login) Login() error {
|
|
return 0, -1
|
|
return 0, -1
|
|
}()
|
|
}()
|
|
//登录source 更新 p414
|
|
//登录source 更新 p414
|
|
|
|
+ mgoUserId := qutil.ObjToString(l.GetSession("mgoUserId"))
|
|
us := jy.UserSource{
|
|
us := jy.UserSource{
|
|
- UserId: qutil.ObjToString(l.GetSession("mgoUserId")),
|
|
|
|
|
|
+ UserId: mgoUserId,
|
|
PositionId: qutil.Int64All(l.GetSession("positionId")),
|
|
PositionId: qutil.Int64All(l.GetSession("positionId")),
|
|
Phone: qutil.ObjToString(l.GetSession("phone")),
|
|
Phone: qutil.ObjToString(l.GetSession("phone")),
|
|
State: qutil.If(state == 3, 2, 1).(int), //注册/登录标志 1:登录;2:注册
|
|
State: qutil.If(state == 3, 2, 1).(int), //注册/登录标志 1:登录;2:注册
|
|
ChannelCode: channelCode,
|
|
ChannelCode: channelCode,
|
|
- EncryptionUserId: encrypt.SE.Encode2Hex(qutil.ObjToString(l.GetSession("userId"))),
|
|
|
|
|
|
+ EncryptionUserId: encrypt.SE.EncodeString(mgoUserId),
|
|
CreateTime: time.Now().Format(date.Date_Full_Layout),
|
|
CreateTime: time.Now().Format(date.Date_Full_Layout),
|
|
LoginWay: qutil.If(state == 1, state, 2).(int), //登录方式;1:手机号密码;2:手机号验证码;3:微信;4:手机号一键登录
|
|
LoginWay: qutil.If(state == 1, state, 2).(int), //登录方式;1:手机号密码;2:手机号验证码;3:微信;4:手机号一键登录
|
|
Platform: qutil.If(strings.Contains(l.Request.Host, "h5"), 4, 3).(int), //登录端;1:PC;2:WX;3:APP;4:H5
|
|
Platform: qutil.If(strings.Contains(l.Request.Host, "h5"), 4, 3).(int), //登录端;1:PC;2:WX;3:APP;4:H5
|
|
@@ -620,13 +621,14 @@ func (l *Login) Register() error {
|
|
"positionId": l.GetSession("positionId"),
|
|
"positionId": l.GetSession("positionId"),
|
|
})
|
|
})
|
|
//登录source 更新 p414
|
|
//登录source 更新 p414
|
|
|
|
+ mgoUserId := qutil.ObjToString(l.GetSession("mgoUserId"))
|
|
us := jy.UserSource{
|
|
us := jy.UserSource{
|
|
- UserId: qutil.ObjToString(l.GetSession("mgoUserId")),
|
|
|
|
|
|
+ UserId: mgoUserId,
|
|
PositionId: qutil.Int64All(l.GetSession("positionId")),
|
|
PositionId: qutil.Int64All(l.GetSession("positionId")),
|
|
Phone: qutil.ObjToString(l.GetSession("phone")),
|
|
Phone: qutil.ObjToString(l.GetSession("phone")),
|
|
State: 2, //注册/登录标志 1:登录;2:注册
|
|
State: 2, //注册/登录标志 1:登录;2:注册
|
|
ChannelCode: channelCode,
|
|
ChannelCode: channelCode,
|
|
- EncryptionUserId: encrypt.SE.Encode2Hex(qutil.ObjToString(l.GetSession("userId"))),
|
|
|
|
|
|
+ EncryptionUserId: encrypt.SE.EncodeString(mgoUserId),
|
|
CreateTime: time.Now().Format(date.Date_Full_Layout),
|
|
CreateTime: time.Now().Format(date.Date_Full_Layout),
|
|
LoginWay: 1, //登录方式;1:手机号密码;2:手机号验证码;3:微信;4:手机号一键登录
|
|
LoginWay: 1, //登录方式;1:手机号密码;2:手机号验证码;3:微信;4:手机号一键登录
|
|
Platform: qutil.If(strings.Contains(l.Request.Host, "h5"), 4, 3).(int), //登录端;1:PC;2:WX;3:APP;4:H5
|
|
Platform: qutil.If(strings.Contains(l.Request.Host, "h5"), 4, 3).(int), //登录端;1:PC;2:WX;3:APP;4:H5
|
|
@@ -828,13 +830,14 @@ func (l *Login) WxLogin() {
|
|
})
|
|
})
|
|
if status > 0 {
|
|
if status > 0 {
|
|
//登录source 更新 p414
|
|
//登录source 更新 p414
|
|
|
|
+ mgoUserId := qutil.ObjToString(l.GetSession("mgoUserId"))
|
|
us := jy.UserSource{
|
|
us := jy.UserSource{
|
|
- UserId: qutil.ObjToString(l.GetSession("mgoUserId")),
|
|
|
|
|
|
+ UserId: mgoUserId,
|
|
PositionId: qutil.Int64All(l.GetSession("positionId")),
|
|
PositionId: qutil.Int64All(l.GetSession("positionId")),
|
|
Phone: qutil.ObjToString(l.GetSession("phone")),
|
|
Phone: qutil.ObjToString(l.GetSession("phone")),
|
|
State: status, //注册/登录标志 1:登录;2:注册
|
|
State: status, //注册/登录标志 1:登录;2:注册
|
|
ChannelCode: channelCode,
|
|
ChannelCode: channelCode,
|
|
- EncryptionUserId: encrypt.SE.Encode2Hex(qutil.ObjToString(l.GetSession("userId"))),
|
|
|
|
|
|
+ EncryptionUserId: encrypt.SE.EncodeString(mgoUserId),
|
|
CreateTime: time.Now().Format(date.Date_Full_Layout),
|
|
CreateTime: time.Now().Format(date.Date_Full_Layout),
|
|
LoginWay: 3, //登录方式;1:手机号密码;2:手机号验证码;3:微信;4:手机号一键登录
|
|
LoginWay: 3, //登录方式;1:手机号密码;2:手机号验证码;3:微信;4:手机号一键登录
|
|
Platform: qutil.If(strings.Contains(l.Request.Host, "h5"), 4, 3).(int), //登录端;1:PC;2:WX;3:APP;4:H5
|
|
Platform: qutil.If(strings.Contains(l.Request.Host, "h5"), 4, 3).(int), //登录端;1:PC;2:WX;3:APP;4:H5
|