fix(tenant): 隔离经营租户与旧分销站点上下文
This commit is contained in:
@@ -387,6 +387,10 @@ func (h *Handler) ListPublicSiteListings(c *gin.Context) {
|
||||
}
|
||||
|
||||
func (h *Handler) GetPublicSiteInfo(c *gin.Context) {
|
||||
if sitecode.HasTenantScope(c.Request.Context()) {
|
||||
response.NotFound(c, "经营租户站点不使用分销站点信息")
|
||||
return
|
||||
}
|
||||
code := sitecode.FromQueryThenHeader(c)
|
||||
domain := strings.TrimSpace(c.Query("domain"))
|
||||
if code == "" && domain == "" {
|
||||
|
||||
Reference in New Issue
Block a user