Skip to content

Commit f3cd86c

Browse files
authored
Merge pull request #485 from ArtisanCloud/develop
Develop
2 parents 60e0964 + 84868c3 commit f3cd86c

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/kernel/models/callback.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ type CallbackMessageHeader struct {
3333
MsgType string `xml:"MsgType"`
3434
Event string `xml:"Event"`
3535
ChangeType string `xml:"ChangeType"`
36+
EventKey string `xml:"EventKey,omitempty"`
3637
Content []byte
3738
}
3839

src/officialAccount/server/handlers/models/event.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ type EventScan struct {
4848
models.CallbackMessageHeader
4949
AgentID string `xml:"AgentID"`
5050
Ticket string `xml:"Ticket"`
51+
//EventKey string `xml:"EventKey"`
5152
}
5253

5354
type EventEnterAgent struct {
@@ -96,7 +97,7 @@ type EventView struct {
9697
type EventScanCodePush struct {
9798
contract.EventInterface
9899
models.CallbackMessageHeader
99-
EventKey string `xml:"EventKey"`
100+
//EventKey string `xml:"EventKey"`
100101
ScanCodeInfo struct {
101102
Text string `xml:",chardata"`
102103
ScanType string `xml:"ScanType"`
@@ -108,7 +109,7 @@ type EventScanCodePush struct {
108109
type EventScancodeWaitMsg struct {
109110
contract.EventInterface
110111
models.CallbackMessageHeader
111-
EventKey string `xml:"EventKey"`
112+
//EventKey string `xml:"EventKey"`
112113
ScanCodeInfo struct {
113114
Text string `xml:",chardata"`
114115
ScanType string `xml:"ScanType"`
@@ -120,7 +121,7 @@ type EventScancodeWaitMsg struct {
120121
type EventPicSysPhoto struct {
121122
contract.EventInterface
122123
models.CallbackMessageHeader
123-
EventKey string `xml:"EventKey"`
124+
//EventKey string `xml:"EventKey"`
124125
SendPicsInfo struct {
125126
Text string `xml:",chardata"`
126127
Count string `xml:"Count"`
@@ -138,7 +139,7 @@ type EventPicSysPhoto struct {
138139
type EventPicPhotoOrAlbum struct {
139140
contract.EventInterface
140141
models.CallbackMessageHeader
141-
EventKey string `xml:"EventKey"`
142+
//EventKey string `xml:"EventKey"`
142143
SendPicsInfo struct {
143144
Text string `xml:",chardata"`
144145
Count string `xml:"Count"`
@@ -156,7 +157,7 @@ type EventPicPhotoOrAlbum struct {
156157
type EventPicWeixin struct {
157158
contract.EventInterface
158159
models.CallbackMessageHeader
159-
EventKey string `xml:"EventKey"`
160+
//EventKey string `xml:"EventKey"`
160161
SendPicsInfo struct {
161162
Text string `xml:",chardata"`
162163
Count string `xml:"Count"`
@@ -266,7 +267,7 @@ type EventTemplateCardEvent struct {
266267
type EventTemplateCardMenuEvent struct {
267268
contract.EventInterface
268269
models.CallbackMessageHeader
269-
EventKey string `xml:"EventKey"`
270+
//EventKey string `xml:"EventKey"`
270271
TaskID string `xml:"TaskId"`
271272
CardType string `xml:"CardType"`
272273
ResponseCode string `xml:"ResponseCode"`

src/work/server/handlers/models/event.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ type EventTemplateCardEvent struct {
263263
type EventTemplateCardMenuEvent struct {
264264
contract.EventInterface
265265
models.CallbackMessageHeader
266-
EventKey string `xml:"EventKey"`
266+
//EventKey string `xml:"EventKey"`
267267
TaskID string `xml:"TaskId"`
268268
CardType string `xml:"CardType"`
269269
ResponseCode string `xml:"ResponseCode"`

0 commit comments

Comments
 (0)