Skip to content

Commit

Permalink
Merge pull request #485 from ArtisanCloud/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Matrix-X committed May 11, 2024
2 parents 60e0964 + 84868c3 commit f3cd86c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/kernel/models/callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ type CallbackMessageHeader struct {
MsgType string `xml:"MsgType"`
Event string `xml:"Event"`
ChangeType string `xml:"ChangeType"`
EventKey string `xml:"EventKey,omitempty"`
Content []byte
}

Expand Down
13 changes: 7 additions & 6 deletions src/officialAccount/server/handlers/models/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type EventScan struct {
models.CallbackMessageHeader
AgentID string `xml:"AgentID"`
Ticket string `xml:"Ticket"`
//EventKey string `xml:"EventKey"`
}

type EventEnterAgent struct {
Expand Down Expand Up @@ -96,7 +97,7 @@ type EventView struct {
type EventScanCodePush struct {
contract.EventInterface
models.CallbackMessageHeader
EventKey string `xml:"EventKey"`
//EventKey string `xml:"EventKey"`
ScanCodeInfo struct {
Text string `xml:",chardata"`
ScanType string `xml:"ScanType"`
Expand All @@ -108,7 +109,7 @@ type EventScanCodePush struct {
type EventScancodeWaitMsg struct {
contract.EventInterface
models.CallbackMessageHeader
EventKey string `xml:"EventKey"`
//EventKey string `xml:"EventKey"`
ScanCodeInfo struct {
Text string `xml:",chardata"`
ScanType string `xml:"ScanType"`
Expand All @@ -120,7 +121,7 @@ type EventScancodeWaitMsg struct {
type EventPicSysPhoto struct {
contract.EventInterface
models.CallbackMessageHeader
EventKey string `xml:"EventKey"`
//EventKey string `xml:"EventKey"`
SendPicsInfo struct {
Text string `xml:",chardata"`
Count string `xml:"Count"`
Expand All @@ -138,7 +139,7 @@ type EventPicSysPhoto struct {
type EventPicPhotoOrAlbum struct {
contract.EventInterface
models.CallbackMessageHeader
EventKey string `xml:"EventKey"`
//EventKey string `xml:"EventKey"`
SendPicsInfo struct {
Text string `xml:",chardata"`
Count string `xml:"Count"`
Expand All @@ -156,7 +157,7 @@ type EventPicPhotoOrAlbum struct {
type EventPicWeixin struct {
contract.EventInterface
models.CallbackMessageHeader
EventKey string `xml:"EventKey"`
//EventKey string `xml:"EventKey"`
SendPicsInfo struct {
Text string `xml:",chardata"`
Count string `xml:"Count"`
Expand Down Expand Up @@ -266,7 +267,7 @@ type EventTemplateCardEvent struct {
type EventTemplateCardMenuEvent struct {
contract.EventInterface
models.CallbackMessageHeader
EventKey string `xml:"EventKey"`
//EventKey string `xml:"EventKey"`
TaskID string `xml:"TaskId"`
CardType string `xml:"CardType"`
ResponseCode string `xml:"ResponseCode"`
Expand Down
2 changes: 1 addition & 1 deletion src/work/server/handlers/models/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ type EventTemplateCardEvent struct {
type EventTemplateCardMenuEvent struct {
contract.EventInterface
models.CallbackMessageHeader
EventKey string `xml:"EventKey"`
//EventKey string `xml:"EventKey"`
TaskID string `xml:"TaskId"`
CardType string `xml:"CardType"`
ResponseCode string `xml:"ResponseCode"`
Expand Down

0 comments on commit f3cd86c

Please sign in to comment.