Browse Source

修改bug

yjp 1 năm trước cách đây
mục cha
commit
ee038605db
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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(),