fix(douyu): 自动校验兑换资格并稳定账号导入顺序
This commit is contained in:
@@ -624,8 +624,16 @@ export default function PlatformFulfillmentPage() {
|
||||
setDouyuActionType(taskType);
|
||||
setDouyuActionBatchId(result.batch_id);
|
||||
message.success(`${DOUYU_ACTION_LABELS[taskType] || '斗鱼任务'}已提交`);
|
||||
if (taskType === 'exchange_goods' && selectedId) {
|
||||
await loadDetail(selectedId, true);
|
||||
await loadTasks(true);
|
||||
}
|
||||
} catch (error) {
|
||||
message.error(getErrorMessage(error));
|
||||
if (taskType === 'exchange_goods') {
|
||||
if (selectedId) await loadDetail(selectedId, true);
|
||||
await loadTasks(true);
|
||||
}
|
||||
} finally {
|
||||
setDouyuActionLoading('');
|
||||
}
|
||||
@@ -1261,8 +1269,7 @@ export default function PlatformFulfillmentPage() {
|
||||
disabled={
|
||||
!selected.account ||
|
||||
!can('douyu:task') ||
|
||||
!selected.commodityId ||
|
||||
selected.exchangeStatus !== 'eligible'
|
||||
!selected.commodityId
|
||||
}
|
||||
loading={douyuActionLoading === 'exchange_goods'}
|
||||
onClick={() => void runDouyuAccountAction('exchange_goods')}
|
||||
|
||||
Reference in New Issue
Block a user