Browse Source

调整返回

jiantaoli 4 years ago
parent
commit
f94478ab9b
1 changed files with 6 additions and 6 deletions
  1. 6 6
      adslib/addata/xiaomi.go

+ 6 - 6
adslib/addata/xiaomi.go

@@ -63,13 +63,13 @@ type AdInfo struct {
63
 }
63
 }
64
 
64
 
65
 type AdData struct {
65
 type AdData struct {
66
-	TargetAddition []AdAction `json:"target_addition"`
67
-	Target         string     `json:"target"`
68
-	ImageUrl       string     `json:"image_url"`
66
+	TargetAddition []AdAction `json:"target_addition,omitempty"`
67
+	Target         string     `json:"target,omitempty"`
68
+	ImageUrl       string     `json:"image_url,omitempty"`
69
 	Duration       int64      `json:"duration"`
69
 	Duration       int64      `json:"duration"`
70
-	VideoUrl       string     `json:"video_url"`
71
-	JsOrderId      int64      `json:"js_order_id"`
72
-	UserAgent      string     `json:"user_agent"`
70
+	VideoUrl       string     `json:"video_url,omitempty"`
71
+	JsOrderId      int64      `json:"js_order_id,omitempty"`
72
+	UserAgent      string     `json:"user_agent, omitempty"`
73
 	DpReport       string     `json:"dp_report,omitempty"`
73
 	DpReport       string     `json:"dp_report,omitempty"`
74
 	Dp             string     `json:"dp,omitempty"`
74
 	Dp             string     `json:"dp,omitempty"`
75
 	OrderName      string     `json:"order_name,omitempty"`
75
 	OrderName      string     `json:"order_name,omitempty"`