Roc 3 years ago
parent
commit
498a5ee813
1 changed files with 8 additions and 0 deletions
  1. 8 0
      logic/user/user.go

+ 8 - 0
logic/user/user.go

@@ -219,6 +219,14 @@ func Apply(userId int, companyId int64, mobile, email string, applyInfo userReq.
 	status := `潜在客户`
 	companyName := applyInfo.CompanyName
 
+	_, err = yb_apply_record.GetLastNotOpRecordByUserId(userId)
+	if err != nil {
+		if err == utils.ErrNoRow {
+			err = nil
+		}
+		return
+	}
+
 	// 联系人信息
 	wxUserInfo, err := wx_user.GetByUserId(userId)
 	if err != nil {