mirror of
https://github.com/certd/certd.git
synced 2026-05-16 21:27:34 +08:00
pref: 调整插件目录,增加一些帮助说明
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user