|
@@ -197,6 +197,9 @@ func userJudge(c *wcf.RpcContact) (bool, string, string) {
|
|
|
|
|
|
// 发送文本信息
|
|
// 发送文本信息
|
|
func sendText(content, wxId, appellation string) (bool, error) {
|
|
func sendText(content, wxId, appellation string) (bool, error) {
|
|
|
|
+ if appellation != "" {
|
|
|
|
+ content = fmt.Sprintf("%s,%s", appellation, content)
|
|
|
|
+ }
|
|
if app.WxClient.SendTxt(content, wxId, nil) != 0 {
|
|
if app.WxClient.SendTxt(content, wxId, nil) != 0 {
|
|
return false, fmt.Errorf(fmt.Sprintf("%s%s文字消息发送失败", content, wxId))
|
|
return false, fmt.Errorf(fmt.Sprintf("%s%s文字消息发送失败", content, wxId))
|
|
}
|
|
}
|