|
@@ -369,7 +369,6 @@ func (o *OneClickInfo) phoneLogin(phone string) (map[string]interface{}, error)
|
|
|
if userId != "" && userPhone == "" {
|
|
|
if _, err := o.bindPhone(phone, true); err == nil {
|
|
|
jy.JyAppCreateSession(db.Mgo, o.Session, userId, 0, *o.ResponseWriter, true, config.Middleground, config.Config.AppPushServiceRpc, config.Config.Criticality)
|
|
|
-<<<<<<< HEAD
|
|
|
if c := public.Mysql.CountBySql("SELECT count(1) FROM dataexport_order WHERE (user_id = ? OR user_phone = ?) AND distribution_channel = 'x054'", userId, phone); c > 0 {
|
|
|
return -3
|
|
|
} else {
|
|
@@ -382,11 +381,9 @@ func (o *OneClickInfo) phoneLogin(phone string) (map[string]interface{}, error)
|
|
|
"isOnlyBind": true,
|
|
|
})
|
|
|
}
|
|
|
-=======
|
|
|
} else if err.Error() == PhoneHasBind {
|
|
|
//已经绑定过手机号
|
|
|
return -1
|
|
|
->>>>>>> master
|
|
|
}
|
|
|
return 3
|
|
|
}
|