mirror of
https://github.com/certd/certd.git
synced 2026-07-16 02:37:34 +08:00
chore: 阿里云订单优化只获取一个订单id
This commit is contained in:
@@ -102,6 +102,9 @@ export class CertApplyGetFormAliyunPlugin extends CertApplyBasePlugin {
|
|||||||
if (!this.orderId) {
|
if (!this.orderId) {
|
||||||
throw new Error("请先输入证书实例 ID");
|
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);
|
const certificateId = await this.getOrderDetailV2(client, this.orderId);
|
||||||
this.logger.info(`获取到证书 ID:${certificateId}`);
|
this.logger.info(`获取到证书 ID:${certificateId}`);
|
||||||
const certDetail = await this.getCertDetail(client, certificateId);
|
const certDetail = await this.getCertDetail(client, certificateId);
|
||||||
|
|||||||
Reference in New Issue
Block a user