fix(listing): 外部上传归属分销站点
This commit is contained in:
@@ -14,6 +14,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"hfb_sys/backend/internal/sitecode"
|
||||
"hfb_sys/backend/pkg/response"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
@@ -39,9 +40,10 @@ func (h *Handler) ImportExternalUpload(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
result, err := h.service.ImportExternalUpload(c.Request.Context(), req, ExternalUploadMeta{
|
||||
IP: c.ClientIP(),
|
||||
UserAgent: c.GetHeader("User-Agent"),
|
||||
RawPayload: raw,
|
||||
IP: c.ClientIP(),
|
||||
UserAgent: c.GetHeader("User-Agent"),
|
||||
RawPayload: raw,
|
||||
DistributionSiteCode: sitecode.FromRequest(c),
|
||||
})
|
||||
if err != nil {
|
||||
writeListingError(c, err)
|
||||
|
||||
Reference in New Issue
Block a user