|
@@ -1,6 +1,14 @@
|
|
|
package jy
|
|
|
|
|
|
import (
|
|
|
+ "encoding/json"
|
|
|
+ "fmt"
|
|
|
+ "log"
|
|
|
+ "regexp"
|
|
|
+ "sort"
|
|
|
+ "strings"
|
|
|
+ "time"
|
|
|
+
|
|
|
util "app.yhyue.com/moapp/jybase/common"
|
|
|
. "app.yhyue.com/moapp/jybase/date"
|
|
|
"app.yhyue.com/moapp/jybase/es"
|
|
@@ -12,13 +20,6 @@ import (
|
|
|
"app.yhyue.com/moapp/jybase/sms"
|
|
|
. "app.yhyue.com/moapp/jypkg/middleground"
|
|
|
"bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/pb"
|
|
|
- "encoding/json"
|
|
|
- "fmt"
|
|
|
- "log"
|
|
|
- "regexp"
|
|
|
- "sort"
|
|
|
- "strings"
|
|
|
- "time"
|
|
|
)
|
|
|
|
|
|
// 获取用户合并以前,合并以后的openid
|
|
@@ -172,7 +173,7 @@ func CheckPhoneIdent(session *httpsession.Session, code string, sessionKey ...st
|
|
|
identCodeValue, _ := session.Get(fmt.Sprintf("%sValue", sessionKeyFlag)).(string)
|
|
|
if identCodeValue != "" && identCodeValue == code {
|
|
|
identCodeKey, _ := session.Get(fmt.Sprintf("%sKey", sessionKeyFlag)).(string)
|
|
|
- ClearPhoneIdentSession(session)
|
|
|
+ ClearPhoneIdentSession(session, sessionKey...)
|
|
|
return identCodeKey
|
|
|
}
|
|
|
return ""
|