refactor(weibo): 移除兑换待确认状态
This commit is contained in:
@@ -4,7 +4,6 @@ export type WeiboCollabStatus =
|
||||
| 'incomplete'
|
||||
| 'to_recharge'
|
||||
| 'recharged'
|
||||
| 'exchange_pending'
|
||||
| 'done'
|
||||
| 'weidou_error'
|
||||
| 'failed'
|
||||
|
||||
@@ -70,7 +70,6 @@ const STATUS_META: Record<WeiboCollabStatus, { label: string; color: string }> =
|
||||
incomplete: { label: '待补资料', color: 'default' },
|
||||
to_recharge: { label: '待充值', color: 'blue' },
|
||||
recharged: { label: '已充值', color: 'cyan' },
|
||||
exchange_pending: { label: '兑换待确认', color: 'purple' },
|
||||
done: { label: '兑换成功', color: 'success' },
|
||||
weidou_error: { label: '微豆异常', color: 'orange' },
|
||||
failed: { label: '兑换失败', color: 'error' },
|
||||
@@ -87,7 +86,6 @@ const STATUS_ORDER: WeiboCollabStatus[] = [
|
||||
'incomplete',
|
||||
'to_recharge',
|
||||
'recharged',
|
||||
'exchange_pending',
|
||||
'done',
|
||||
'weidou_error',
|
||||
'failed',
|
||||
@@ -95,7 +93,7 @@ const STATUS_ORDER: WeiboCollabStatus[] = [
|
||||
];
|
||||
|
||||
const MANUAL_STATUS_OPTIONS = STATUS_ORDER.filter(
|
||||
(item) => item !== 'recharged' && item !== 'weidou_error',
|
||||
(item) => item !== 'weidou_error',
|
||||
).map((value) => ({ value, label: STATUS_META[value].label }));
|
||||
|
||||
const VERDICT_META: Record<string, { label: string; color: string }> = {
|
||||
@@ -1373,9 +1371,6 @@ export default function WeiboCollabPage() {
|
||||
<Button icon={<SyncOutlined />} onClick={() => void runExchangeCheck([detail.id])}>
|
||||
查兑换记录
|
||||
</Button>
|
||||
<Button onClick={() => openStatus([detail.id], 'exchange_pending')}>
|
||||
标记兑换发起
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
</Space>
|
||||
|
||||
Reference in New Issue
Block a user