mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-08 07:41:10 +08:00
修改插件响应结果判断,新增跳过通知
This commit is contained in:
@@ -428,6 +428,7 @@ func GetCert(runId string, domainArr []string, endDay int, logger *public.Logger
|
||||
"cert": maxItem["cert"],
|
||||
"key": maxItem["key"],
|
||||
"issuerCert": maxItem["issuer_cert"],
|
||||
"skip": true,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -183,6 +183,9 @@ func tryCallPlugin(name, action string, params map[string]interface{}, logger *p
|
||||
}
|
||||
cmd.Wait()
|
||||
logger.Debug("插件响应", "plugin", name, "action", action, "response", resp)
|
||||
if resp.Status != "success" {
|
||||
return nil, fmt.Errorf("插件响应错误: %s", resp.Message)
|
||||
}
|
||||
|
||||
return &resp, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user