mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 11:09:19 +08:00
fix(ecom-script): 刷单单量按店×天控制,规格随机分配并修正预计条数
This commit is contained in:
+2
-1
@@ -115,7 +115,8 @@ async function seedHandler(opts) {
|
||||
|
||||
const dayCount = Math.floor((endDate - startDate) / 86400000) + 1;
|
||||
const shopDailyAvg = (dailyMin + dailyMax) / 2;
|
||||
const estimatedTotal = Math.ceil(specs.length * shops.length * dayCount * shopDailyAvg);
|
||||
// 预计总量 = 店数 × 天数 × 单店日均(与规格数量无关)
|
||||
const estimatedTotal = Math.ceil(shops.length * dayCount * shopDailyAvg);
|
||||
|
||||
console.log(`\n公司: ${company.name} (${company.id})`);
|
||||
console.log(`时间: ${formatDate(startDate)} ~ ${formatDate(endDate)} (${dayCount} 天)`);
|
||||
|
||||
Reference in New Issue
Block a user