|
@@ -875,7 +875,7 @@ func (this *UserController) ApplyTryOut() {
|
|
|
|
|
|
cnf, _ := models.GetConfigByCode("tpl_msg")
|
|
|
if cnf != nil {
|
|
|
- openIpItem, _ := models.GetUserRecordByUserId(user.UserId, 1)
|
|
|
+ openIpItem, _ := models.GetUserRecordByMobile(1, cnf.ConfigValue)
|
|
|
if openIpItem != nil && openIpItem.OpenId != "" {
|
|
|
fmt.Println("推送消息", req.RealName, req.CompanyName, mobile, openIpItem.OpenId, applyMethod)
|
|
|
utils.FileLog.Info("推送消息 %s %s,%s,%s,%s", req.RealName, req.CompanyName, mobile, openIpItem.OpenId, applyMethod)
|