ls hace 6 años
padre
commit
46a77f1e3c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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"`
 }