shaoguo 3 weeks ago
parent
commit
9ce318aec3
1 changed files with 10 additions and 10 deletions
  1. 10 10
      services/payments/h5/models.go

+ 10 - 10
services/payments/h5/models.go

@@ -716,25 +716,25 @@ func (o PrepayRequest) Clone() *PrepayRequest {
 // PrepayResponse
 type PrepayResponse struct {
 	// 支付跳转链接
-	H5Url *string `json:"h5_url"`
+	MwebUrl *string `json:"mweb_url"`
 }
 
 func (o PrepayResponse) MarshalJSON() ([]byte, error) {
 	toSerialize := map[string]interface{}{}
 
-	if o.H5Url == nil {
-		return nil, fmt.Errorf("field `H5Url` is required and must be specified in PrepayResponse")
+	if o.MwebUrl == nil {
+		return nil, fmt.Errorf("field `MwebUrl` is required and must be specified in PrepayResponse")
 	}
-	toSerialize["h5_url"] = o.H5Url
+	toSerialize["h5_url"] = o.MwebUrl
 	return json.Marshal(toSerialize)
 }
 
 func (o PrepayResponse) String() string {
 	var ret string
-	if o.H5Url == nil {
-		ret += "H5Url:<nil>"
+	if o.MwebUrl == nil {
+		ret += "MwebUrl:<nil>"
 	} else {
-		ret += fmt.Sprintf("H5Url:%v", *o.H5Url)
+		ret += fmt.Sprintf("MwebUrl:%v", *o.MwebUrl)
 	}
 
 	return fmt.Sprintf("PrepayResponse{%s}", ret)
@@ -743,9 +743,9 @@ func (o PrepayResponse) String() string {
 func (o PrepayResponse) Clone() *PrepayResponse {
 	ret := PrepayResponse{}
 
-	if o.H5Url != nil {
-		ret.H5Url = new(string)
-		*ret.H5Url = *o.H5Url
+	if o.MwebUrl != nil {
+		ret.MwebUrl = new(string)
+		*ret.MwebUrl = *o.MwebUrl
 	}
 
 	return &ret