mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
feat: 套餐购买支持易支付、支付宝支付
This commit is contained in:
@@ -144,6 +144,19 @@ export class RunnableCollection {
|
||||
this.collection = map;
|
||||
}
|
||||
|
||||
static initPipelineRunnableType(pipeline: Pipeline) {
|
||||
pipeline.runnableType = "pipeline";
|
||||
pipeline.stages.forEach((stage) => {
|
||||
stage.runnableType = "stage";
|
||||
stage.tasks.forEach((task) => {
|
||||
task.runnableType = "task";
|
||||
task.steps.forEach((step) => {
|
||||
step.runnableType = "step";
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
static each<T extends Runnable>(list: T[], exec: (item: Runnable) => void) {
|
||||
list.forEach((item) => {
|
||||
exec(item);
|
||||
|
||||
Reference in New Issue
Block a user