|
@@ -1081,9 +1081,9 @@ func SendPermissionApplyTemplateMsgAdmin(req models.ApplyTryReq, usermobile, app
|
|
|
}
|
|
|
}()
|
|
|
var configCode string
|
|
|
-
|
|
|
+
|
|
|
if isResearch {
|
|
|
- configCode = utils.TPL_MSG_WANG_YANG
|
|
|
+ configCode = utils.TPL_MSG_WANG_FANG_WANG_YANG
|
|
|
} else {
|
|
|
configCode = utils.TPL_MSG
|
|
|
}
|
|
@@ -1092,11 +1092,21 @@ func SendPermissionApplyTemplateMsgAdmin(req models.ApplyTryReq, usermobile, app
|
|
|
err = errors.New("GetConfigByCode, Err: " + e.Error() + configCode)
|
|
|
return
|
|
|
}
|
|
|
- openIpItem, e := models.GetUserRecordByMobile(4, cnf.ConfigValue)
|
|
|
- if e != nil {
|
|
|
- err = errors.New("GetUserRecordByMobile, Err: " + e.Error() + cnf.ConfigValue)
|
|
|
- return
|
|
|
+ openIdList, e := models.GetUserRecordListByMobile(4, cnf.ConfigValue)
|
|
|
+ if e != nil && e.Error() != utils.ErrNoRow() {
|
|
|
+ err = errors.New("GetUserRecordListByMobile, Err: " + e.Error() + cnf.ConfigValue)
|
|
|
+ return err
|
|
|
+ }
|
|
|
+
|
|
|
+ for _, v := range openIdList {
|
|
|
+ go SendPermissionApplyTemplateMsg(req.RealName, req.CompanyName, usermobile, applyMethod, v)
|
|
|
}
|
|
|
- go SendPermissionApplyTemplateMsg(req.RealName, req.CompanyName, usermobile, applyMethod, openIpItem)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
return
|
|
|
}
|