Explorar o código

fix(联系人绑定):新增缓存机制,避免手机号多次提交(移除缓存5s)

Roc %!s(int64=3) %!d(string=hai) anos
pai
achega
42e54870c2
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      services/user.go

+ 0 - 1
services/user.go

@@ -203,7 +203,6 @@ func BindWxUser(openid, mobile, email string, registerPlatform int) (wxUser *mod
 			return
 		}
 		utils.Rc.SetNX(key, "ok", time.Second*300)
-		time.Sleep(time.Second * 5)
 		user := &models.WxUser{
 			CompanyId:        1,
 			CreatedTime:      time.Now(),