소스 검색

uniform send

ls 5 년 전
부모
커밋
46a77f1e3c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      wechat/structure.go

+ 2 - 2
wechat/structure.go

@@ -263,6 +263,6 @@ type MpTemplateMessage struct {
 // MiniUniformMessage mini uniform send
 type MiniUniformMessage struct {
 	ToUser string                `json:"touser"`
-	WeApp  *WeappTemplateMessage `json:"weapp_template_msg"`
-	MP     *MpTemplateMessage    `json:"mp_template_msg"`
+	WeApp  *WeappTemplateMessage `json:"weapp_template_msg,omitempty"`
+	MP     *MpTemplateMessage    `json:"mp_template_msg,omitempty"`
 }