|
@@ -1128,8 +1128,10 @@ func (this *UserController) ApplyTryOut() {
|
|
|
// }
|
|
|
// go services.SendPermissionApplyTemplateMsg(req.RealName, req.CompanyName, mobile, applyMethod, openIpItem)
|
|
|
//}
|
|
|
-
|
|
|
- go services.SendPermissionApplyTemplateMsgAdmin(req, mobile, applyMethod, isResearch)
|
|
|
+ //如果对应销售不存在就给王芳,汪洋推模版消息
|
|
|
+ if sellerItem == nil {
|
|
|
+ go services.SendPermissionApplyTemplateMsgAdmin(req, mobile, applyMethod, isResearch)
|
|
|
+ }
|
|
|
err = models.AddApplyRecord(&req, user.Mobile, user.CompanyName, uid, user.CompanyId, CompanyIdType)
|
|
|
if err != nil {
|
|
|
br.Msg = "申请失败"
|