chore: 阿里云订单优化只获取一个订单id

This commit is contained in:
xiaojunnuo
2026-05-26 09:10:01 +08:00
parent f721cefb4a
commit 9566fc4e03
@@ -102,6 +102,9 @@ export class CertApplyGetFormAliyunPlugin extends CertApplyBasePlugin {
if (!this.orderId) {
throw new Error("请先输入证书实例 ID");
}
if (Array.isArray(this.orderId) && this.orderId.length > 0) {
this.orderId = this.orderId[0]
}
const certificateId = await this.getOrderDetailV2(client, this.orderId);
this.logger.info(`获取到证书 ID:${certificateId}`);
const certDetail = await this.getCertDetail(client, certificateId);