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

This commit is contained in:
xiaojunnuo
2026-05-26 09:10:01 +08:00
parent 02b83ce0ad
commit ed97f41884
@@ -101,6 +101,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);