mirror of
https://github.com/certd/certd.git
synced 2026-06-10 18:57:33 +08:00
chore: 阿里云订单优化只获取一个订单id
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user