Browse Source

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

Roc 3 years ago
parent
commit
42e54870c2
1 changed files with 0 additions and 1 deletions
  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(),