Browse Source

修改bug

yjp 1 year ago
parent
commit
ee038605db
1 changed files with 1 additions and 1 deletions
  1. 1 1
      http_binding/response/response.go

+ 1 - 1
http_binding/response/response.go

@@ -167,7 +167,7 @@ func WriteBytes(c *binding_context.Context, statusCode int, bytes []byte, err er
 }
 
 func SendWXOrderResponse(c *binding_context.Context, statusCode int, _ any, err error) {
-	if err == nil {
+	if err != nil {
 		c.XML(statusCode, map[string]any{
 			"return_code": "FAIL",
 			"return_msg":  err.Error(),