rdluck 4 ani în urmă
părinte
comite
f2b3c8a2b9
1 a modificat fișierele cu 9 adăugiri și 0 ștergeri
  1. 9 0
      controllers/user.go

+ 9 - 0
controllers/user.go

@@ -777,6 +777,14 @@ func (this *UserController) ApplyTryOut() {
 		br.ErrMsg = "参数解析失败,Err:" + err.Error()
 		return
 	}
+	realName := req.RealName
+	companyName := req.CompanyName
+	if realName == "" {
+		realName = user.RealName
+	}
+	if companyName == "" {
+		companyName = user.CompanyName
+	}
 	//判断是否存在申请
 	var sellerMobile string
 	if req.ApplyMethod == 2 {
@@ -865,6 +873,7 @@ func (this *UserController) ApplyTryOut() {
 	} else {
 		applyMethod = "潜在客户申请"
 	}
+
 	cnf, _ := models.GetConfigByCode("tpl_msg")
 	if cnf != nil {
 		openIpItem, _ := models.GetUserRecordByUserId(user.UserId, 1)