fix(order): 支持客服跨站处理订单与退款

This commit is contained in:
yml
2026-11-19 20:29:16 +08:00
parent 3492ecbe9b
commit cd081d1cdd
18 changed files with 349 additions and 191 deletions
@@ -222,6 +222,19 @@ func (h *Handler) AdminList(c *gin.Context) {
response.OK(c, result)
}
func (h *Handler) AdminOrderPayments(c *gin.Context) {
orderID, ok := parseID(c)
if !ok {
return
}
items, err := h.service.OrderPayments(c.Request.Context(), orderID)
if err != nil {
writePaymentError(c, err)
return
}
response.OK(c, gin.H{"items": items})
}
func (h *Handler) LeshuaNotify(c *gin.Context) {
body, err := io.ReadAll(io.LimitReader(c.Request.Body, 1<<20))
if err != nil {