authbind
This commit is contained in:
@@ -903,6 +903,9 @@ func SendMsgToUser(userID string, templateID string, data interface{}) (err erro
|
||||
return err
|
||||
}
|
||||
successCount := 0
|
||||
if len(authBinds) == 0 {
|
||||
return fmt.Errorf("此用户未找到微信认证方式!userID: %v", userID)
|
||||
}
|
||||
globals.SugarLogger.Debugf("SendMsgToUser userID:%d, openID:%s, templateID:%s", userID, authBinds[0].AuthID, templateID)
|
||||
if err2 := SmartMessageTemplateSend(authBinds[0].AuthID, templateID, "", "", data); err2 == nil {
|
||||
successCount++
|
||||
|
||||
Reference in New Issue
Block a user