rdluck 4 years ago
parent
commit
cc19f571a8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/user_pc.go

+ 1 - 1
controllers/user_pc.go

@@ -42,7 +42,7 @@ func (this *UserCommonController) GetGraphicVerifyCode() {
 	char := base64Captcha.EngineCharCreate(configC)
 
 	base64stringC := base64Captcha.CaptchaWriteToBase64Encoding(char)
-	verifyId := fmt.Sprintf("%d", time.Now().Unix())
+	verifyId := fmt.Sprintf("%d", time.Now().UnixNano())
 	item := new(models.GraphicVerifyCode)
 	item.VerifyId = verifyId
 	item.VerifyCode = char.CaptchaItem.VerifyValue