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