File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,10 @@ import (
102
102
103
103
// 这里回复success告诉微信我收到了,后续需要回复用户信息可以主动调发消息接口
104
104
return kernel.SUCCESS_EMPTY_RESPONSE
105
+
106
+ // 如果要返回xml,也可以返回message对象
107
+ return messages.NewText (" 返回消息内容" )
108
+
105
109
})
106
110
107
111
if err != nil {
@@ -133,4 +137,4 @@ import (
133
137
134
138
参考:[ PowerWechatTutorial] ( https://github.com/ArtisanCloud/PowerWechatTutorial/blob/master/controllers/official-account/server.go )
135
139
136
- 微信官方文档: [ https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Receiving_standard_messages.html ] ( https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Receiving_standard_messages.html )
140
+ 微信官方文档: [ https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Receiving_standard_messages.html ] ( https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Receiving_standard_messages.html )
You can’t perform that action at this time.
0 commit comments