We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mux := weixin.New("tk_wx_xxx", "", "") mux.HandleFunc(weixin.MsgTypeText, Echo) http.Handle("/wx/signature", mux)
func Echo(w weixin.ResponseWriter, r *weixin.Request) { txt := r.Content // 获取用户发送的消息 w.ReplyText(txt) // 回复一条文本消息 w.PostText("Post:" + txt) // 发送一条文本消息 }
我的这个地址 会报404错误
The text was updated successfully, but these errors were encountered:
No branches or pull requests
mux := weixin.New("tk_wx_xxx", "", "")
mux.HandleFunc(weixin.MsgTypeText, Echo)
http.Handle("/wx/signature", mux)
func Echo(w weixin.ResponseWriter, r *weixin.Request) {
txt := r.Content // 获取用户发送的消息
w.ReplyText(txt) // 回复一条文本消息
w.PostText("Post:" + txt) // 发送一条文本消息
}
我的这个地址 会报404错误
The text was updated successfully, but these errors were encountered: