修复库存监控提前停止并发布0.2.0
This commit is contained in:
@@ -161,7 +161,7 @@ export function useScheduler() {
|
||||
}
|
||||
}
|
||||
|
||||
const startFixed = async (attempts: number, delayMs: number, accountProducts?: Record<string, string>) => {
|
||||
const startFixed = async (attempts: number, delayMs: number, accountProducts?: Record<string, string>, reportSessionID = '') => {
|
||||
const ap = accountProducts || buildAccountProducts(selectedProductId.value || '', false)
|
||||
if (!ap) return false
|
||||
resetStatus()
|
||||
@@ -169,7 +169,7 @@ export function useScheduler() {
|
||||
markAccountNamesPending(Object.keys(ap), '固定抢购中,等待后端结果')
|
||||
setRunState('固定抢购已提交')
|
||||
try {
|
||||
const d = await StartFixedSeckill({ accountProducts: ap, attempts, delayMs })
|
||||
const d = await StartFixedSeckill({ accountProducts: ap, attempts, delayMs, reportSessionId: reportSessionID })
|
||||
if (d?.success === false) throw new Error(d.error || '提交失败')
|
||||
seckillRunning.value = true
|
||||
pendingXiaodianAssetAccounts.value = Object.keys(ap)
|
||||
|
||||
Reference in New Issue
Block a user