fix(order): 确保分站发布的商品被租用后号主在主站可见并能正常交接

This commit is contained in:
yml2213
2026-09-09 16:26:21 +08:00
parent e9787e1c27
commit dd38227b95
3 changed files with 53 additions and 18 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ func (r *Repository) Create(ctx context.Context, renterID uint64, req CreateRequ
if err != nil {
return nil, err
}
return r.FindForUser(ctx, renterID, createdID)
return r.FindForUser(ctx, renterID, createdID, req.DistributionSiteCode)
}
func loadShelfRatioTx(tx *gorm.DB, siteCode string, listingID uint64) (float64, uint64, error) {