shaoguo 3 tuần trước cách đây
mục cha
commit
c4de2a0c79
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      services/partnerpayments/h5/models.go

+ 3 - 3
services/partnerpayments/h5/models.go

@@ -1068,10 +1068,10 @@ type StoreInfo struct {
 func (o StoreInfo) MarshalJSON() ([]byte, error) {
 	toSerialize := map[string]interface{}{}
 
-	if o.Id == nil {
-		return nil, fmt.Errorf("field `Id` is required and must be specified in StoreInfo")
+	if o.Id != nil {
+		toSerialize["id"] = o.Id
 	}
-	toSerialize["id"] = o.Id
+
 
 	if o.Name != nil {
 		toSerialize["name"] = o.Name