feat: plugin-huawei

This commit is contained in:
xiaojunnuo
2023-05-09 09:19:17 +08:00
parent d602df4c70
commit 003ea9310b
36 changed files with 1640 additions and 61 deletions
@@ -0,0 +1,15 @@
import dayjs from "dayjs";
export const ZoneOptions = [{ value: "cn-hangzhou" }];
export function appendTimeSuffix(name: string) {
if (name == null) {
name = "certd";
}
return name + "-" + dayjs().format("YYYYMMDD-HHmmss");
}
export function checkRet(ret: any) {
if (ret.code != null) {
throw new Error("执行失败:" + ret.Message);
}
}