|
@@ -86,7 +86,7 @@ func (this *UserCommonController) GetSmsCode() {
|
|
|
item.OpenId = ""
|
|
|
item.Code = msgCode
|
|
|
item.Mobile = mobile
|
|
|
- item.ExpiredIn = time.Now().Add(15*60).Unix()
|
|
|
+ item.ExpiredIn = time.Now().Add(15*time.Minute).Unix()
|
|
|
item.Enabled = 1
|
|
|
item.CreatedTime=time.Now()
|
|
|
err := models.AddMsgCode(item)
|
|
@@ -187,7 +187,7 @@ func (this *UserCommonController) GetEmailCode() {
|
|
|
item.OpenId = ""
|
|
|
item.Code = msgCode
|
|
|
item.Mobile = email
|
|
|
- item.ExpiredIn = time.Now().Add(15*60).Unix()
|
|
|
+ item.ExpiredIn = time.Now().Add(15*time.Minute).Unix()
|
|
|
item.Enabled = 1
|
|
|
item.CreatedTime=time.Now()
|
|
|
err := models.AddMsgCode(item)
|