wcj 5 年之前
父节点
当前提交
e0b4f98c64
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      common/src/qfw/util/jy/jy.go

+ 4 - 3
common/src/qfw/util/jy/jy.go

@@ -182,13 +182,14 @@ func SendPhoneIdentCode(phone string, session *httpsession.Session) bool {
 }
 
 //短信验证码校验
-func CheckPhoneIdent(session *httpsession.Session, code string) bool {
+func CheckPhoneIdent(session *httpsession.Session, code string) string {
 	identCodeKey, _ := session.Get("identCodeValue").(string)
 	if identCodeKey != "" && identCodeKey == code {
+		identCodeKey, _ := session.Get("identCodeKey").(string)
 		ClearPhoneIdentSession(session)
-		return true
+		return identCodeKey
 	}
-	return false
+	return ""
 }
 
 //删除短信验证码有关的session