shaoguo 3 周之前
父节点
当前提交
78e63f9c0e
共有 2 个文件被更改,包括 0 次插入10 次删除
  1. 0 5
      services/partnerpayments/h5/models.go
  2. 0 5
      services/payments/h5/models.go

+ 0 - 5
services/partnerpayments/h5/models.go

@@ -968,11 +968,6 @@ func (o SceneInfo) MarshalJSON() ([]byte, error) {
 	if o.StoreInfo != nil {
 		toSerialize["store_info"] = o.StoreInfo
 	}
-
-	if o.H5Info == nil {
-		return nil, fmt.Errorf("field `H5Info` is required and must be specified in SceneInfo")
-	}
-	toSerialize["h5_info"] = o.H5Info
 	return json.Marshal(toSerialize)
 }
 

+ 0 - 5
services/payments/h5/models.go

@@ -857,11 +857,6 @@ func (o SceneInfo) MarshalJSON() ([]byte, error) {
 	if o.StoreInfo != nil {
 		toSerialize["store_info"] = o.StoreInfo
 	}
-
-	if o.H5Info == nil {
-		return nil, fmt.Errorf("field `H5Info` is required and must be specified in SceneInfo")
-	}
-	toSerialize["h5_info"] = o.H5Info
 	return json.Marshal(toSerialize)
 }