feat(douyu): 自动同步待领取订单
This commit is contained in:
@@ -71,7 +71,7 @@ type LiveBindingBatchResponse = {
|
|||||||
items: LiveBindingState[]
|
items: LiveBindingState[]
|
||||||
}
|
}
|
||||||
|
|
||||||
const AUTO_DISCOVERY_INTERVAL_MS = 60_000
|
const AUTO_DISCOVERY_INTERVAL_MS = 15_000
|
||||||
const LIVE_STATE_SYNC_INTERVAL_MS = 60_000
|
const LIVE_STATE_SYNC_INTERVAL_MS = 60_000
|
||||||
const TERMINAL_TASK_STATUSES = new Set(['completed', 'cancelled'])
|
const TERMINAL_TASK_STATUSES = new Set(['completed', 'cancelled'])
|
||||||
|
|
||||||
|
|||||||
@@ -281,7 +281,7 @@ export default function AdminDouyuFulfillmentPage() {
|
|||||||
loading={syncMutation.isPending}
|
loading={syncMutation.isPending}
|
||||||
onClick={() => syncMutation.mutate()}
|
onClick={() => syncMutation.mutate()}
|
||||||
>
|
>
|
||||||
同步斗鱼订单
|
立即同步
|
||||||
</Button>
|
</Button>
|
||||||
<Button icon={<ReloadOutlined />} onClick={() => void listQuery.refetch()}>
|
<Button icon={<ReloadOutlined />} onClick={() => void listQuery.refetch()}>
|
||||||
刷新
|
刷新
|
||||||
|
|||||||
Reference in New Issue
Block a user