mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-11-04 19:32:17 +08:00 
			
		
		
		
	demo modify
This commit is contained in:
		
							parent
							
								
									563d466374
								
							
						
					
					
						commit
						df8970f59b
					
				@ -52,7 +52,7 @@ func SendVerificationCode(c *gin.Context) {
 | 
				
			|||||||
	rand.Seed(time.Now().UnixNano())
 | 
						rand.Seed(time.Now().UnixNano())
 | 
				
			||||||
	code := 100000 + rand.Intn(900000)
 | 
						code := 100000 + rand.Intn(900000)
 | 
				
			||||||
	log.NewInfo(params.OperationID, "begin store redis", account)
 | 
						log.NewInfo(params.OperationID, "begin store redis", account)
 | 
				
			||||||
	err = db.DB.SetAccountCode(account, code, config.Config.Demo.SuperCodeTTL)
 | 
						err = db.DB.SetAccountCode(account, code, config.Config.Demo.CodeTTL)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		log.NewError(params.OperationID, "set redis error", account, "err", err.Error())
 | 
							log.NewError(params.OperationID, "set redis error", account, "err", err.Error())
 | 
				
			||||||
		c.JSON(http.StatusOK, gin.H{"errCode": constant.SmsSendCodeErr, "errMsg": "Enter the superCode directly in the verification code box, SuperCode can be configured in config.xml"})
 | 
							c.JSON(http.StatusOK, gin.H{"errCode": constant.SmsSendCodeErr, "errMsg": "Enter the superCode directly in the verification code box, SuperCode can be configured in config.xml"})
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user