Skip to content

Commit

Permalink
fix: 修复微信订单支付状态判定规则
Browse files Browse the repository at this point in the history
  • Loading branch information
taydy committed Nov 5, 2019
1 parent 8fb7ab5 commit 678cfe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/wechatclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (c *WeChatClient) Refund(tradeNo string, refundFee int) (bool, error) {
fmt.Printf("wechat transfer error, error: %v \n", decodeErr)
return false, payErrors.ErrWXPayError
}
if payResult.ReturnCode == constant.SUCCESS || payResult.ResultCode == constant.SUCCESS {
if payResult.ReturnCode == constant.SUCCESS && payResult.ResultCode == constant.SUCCESS {
return true, nil
}
return false, payErrors.NewBadRequestError(payErrors.WX_PAY_ERROR, payResult.ErrCodeDes)
Expand Down

0 comments on commit 678cfe5

Please sign in to comment.