Skip to content

Commit

Permalink
类型调整
Browse files Browse the repository at this point in the history
  • Loading branch information
smartwalle committed May 25, 2023
1 parent 57aa8fb commit a440cbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions alipay_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ type Error struct {
SubMsg string `json:"sub_msg"`
}

func (this *Error) Error() string {
func (this Error) Error() string {
return fmt.Sprintf("%s - %s", this.Code, this.SubMsg)
}

func (this *Error) IsSuccess() bool {
func (this Error) IsSuccess() bool {
return this.Code.IsSuccess()
}

func (this *Error) IsFailure() bool {
func (this Error) IsFailure() bool {
return this.Code.IsFailure()
}

Expand Down

0 comments on commit a440cbd

Please sign in to comment.