mirror of
https://github.com/usual2970/certimate.git
synced 2025-08-08 10:21:45 +00:00
When adding a domain, you can also add a custom email address.
This commit is contained in:
@@ -23,6 +23,8 @@ const (
|
||||
configTypeGodaddy = "godaddy"
|
||||
)
|
||||
|
||||
const defaultEmail = "536464346@qq.com"
|
||||
|
||||
type Certificate struct {
|
||||
CertUrl string `json:"certUrl"`
|
||||
CertStableUrl string `json:"certStableUrl"`
|
||||
@@ -60,8 +62,12 @@ type Applicant interface {
|
||||
|
||||
func Get(record *models.Record) (Applicant, error) {
|
||||
access := record.ExpandedOne("access")
|
||||
email := record.GetString("email")
|
||||
if email == "" {
|
||||
email = defaultEmail
|
||||
}
|
||||
option := &ApplyOption{
|
||||
Email: "536464346@qq.com",
|
||||
Email: email,
|
||||
Domain: record.GetString("domain"),
|
||||
Access: access.GetString("config"),
|
||||
}
|
||||
|
Reference in New Issue
Block a user