Skip to content

Commit 44b2d04

Browse files
committed
说清楚终止是到期生效,并给出撤销的确切路径
用户担心「终止」会立即停机。查了官方文档,不会: 「The termination of an OVHcloud service implies that it will be permanently discontinued at the end of the current subscription」——到当期订阅结束才生效。 立即释放资源是另一个独立端点 /services/{id}/terminate/skipRetentionPeriod (描述:Immediately release the resources),本项目全代码没有任何地方调用它, 也没有调用 DELETE /services/{id}。实际只会打两个端点:/terminate 与 /confirmTermination。 对话框现在写明两件事:到期前照常运行、以及反悔怎么办 —— OVH 控制台 My offers and services → 服务右侧 ... → Stop cancellation of service, 撤销立即生效。上一版只说了「本控制台无法撤销」却没告诉用户去哪撤,不够。
1 parent 36c9e1f commit 44b2d04

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

web/src/components/server-control/RenewalDialog.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export function RenewalDialog({
124124
}
125125
try {
126126
await confirmTerm.mutateAsync({ token: token.trim() });
127-
toast.success("已确认终止,服务器将在到期日销毁");
127+
toast.success("已确认终止。到期日之前服务器照常运行,到期后才销毁");
128128
onOpenChange(false);
129129
} catch (e: any) {
130130
toast.error(errText(e, "确认失败"), { duration: 8000 });
@@ -227,8 +227,13 @@ export function RenewalDialog({
227227
把里面的确认码填回来才真正生效。
228228
</p>
229229
<p>
230-
<b>确认之后本控制台无法撤销</b> —— OVH 没有提供取消终止的接口。
231-
改主意了要去 OVH 控制台操作(官方说到期前 24 小时内可以撤销)。
230+
到期之前服务器<b>照常运行</b>,不会立即停机 —— OVH 的终止是
231+
「当期订阅结束时才生效」。立即释放资源是另一个接口,本控制台不调用。
232+
</p>
233+
<p>
234+
<b>反悔要去 OVH 控制台</b>(API 没有取消终止的端点):
235+
My offers and services → 该服务右侧 <code>...</code>
236+
Stop cancellation of service。撤销是立即生效的。
232237
</p>
233238
</div>
234239
</div>

0 commit comments

Comments
 (0)