yjp 1 жил өмнө
parent
commit
ee038605db

+ 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(),