|
@@ -828,7 +828,7 @@ func (this *UserController) ApplyTryOut() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- if applyCount < 0 {
|
|
|
+ if applyCount > 0 {
|
|
|
br.Msg = "您已提交申请,请耐心等待。"
|
|
|
br.IsSendEmail = false
|
|
|
return
|
|
@@ -918,16 +918,13 @@ func (this *UserController) ApplyTryOut() {
|
|
|
}
|
|
|
|
|
|
applyMethod := ""
|
|
|
- if req.ApplyMethod == 1 {
|
|
|
- applyMethod = "已有客户申请"
|
|
|
- } else {
|
|
|
- applyMethod = "潜在客户申请"
|
|
|
- }
|
|
|
-
|
|
|
cnf, _ := models.GetConfigByCode("tpl_msg")
|
|
|
if cnf != nil {
|
|
|
- if req.ApplyMethod == 1 && sellerItem != nil {
|
|
|
+ if sellerItem != nil {
|
|
|
cnf.ConfigValue = sellerItem.Mobile
|
|
|
+ applyMethod = "已有客户申请"
|
|
|
+ } else {
|
|
|
+ applyMethod = "潜在客户申请"
|
|
|
}
|
|
|
openIpItem, _ := models.GetUserRecordByMobile(4, cnf.ConfigValue)
|
|
|
if openIpItem != nil && openIpItem.OpenId != "" {
|