mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-08 07:41:10 +08:00
fix: 修正无法部署到雨云证书中心的问题
This commit is contained in:
@@ -111,7 +111,7 @@ func Deploy(cfg map[string]any, logger *public.Logger) error {
|
|||||||
logger.Debug("通过Webhook推送证书...")
|
logger.Debug("通过Webhook推送证书...")
|
||||||
return webhook.Deploy(cfg)
|
return webhook.Deploy(cfg)
|
||||||
case "rainyun-sslcenter":
|
case "rainyun-sslcenter":
|
||||||
logger.Debug("通过Webhook推送证书...")
|
logger.Debug("部署到雨云证书中...")
|
||||||
return DeployRainyunSSLCenter(cfg)
|
return DeployRainyunSSLCenter(cfg)
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("不支持的部署: %s", providerName)
|
return fmt.Errorf("不支持的部署: %s", providerName)
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ func DeployRainyunSSLCenter(cfg map[string]any) error {
|
|||||||
|
|
||||||
// 更新证书中心
|
// 更新证书中心
|
||||||
reqPath := fmt.Sprintf("/product/sslcenter/%s", certId)
|
reqPath := fmt.Sprintf("/product/sslcenter/%s", certId)
|
||||||
resp, err := requestRainyunApi(reqPath, apiKey, http.MethodPost, cert)
|
resp, err := requestRainyunApi(reqPath, apiKey, http.MethodPut, cert)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -143,6 +143,10 @@ export function createNodeFormConfig() {
|
|||||||
return [this.input($t('t_0_1747296173751'), 'siteName', { placeholder: $t('t_0_1748589752275') })]
|
return [this.input($t('t_0_1747296173751'), 'siteName', { placeholder: $t('t_0_1748589752275') })]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
rainyunSSLCenterDeploy(){
|
||||||
|
return [this.input("证书ID", 'cert_id', { placeholder:"雨云证书中心中显示的ID"})]
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建1Panel站点相关字段
|
* 创建1Panel站点相关字段
|
||||||
* @param valueRef 值引用
|
* @param valueRef 值引用
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { NButton, NCard, NStep, NSteps, NText, NTooltip, NTabs, NTabPane, NInput
|
|||||||
import { useForm, useModalClose, useModalOptions, useMessage } from '@baota/naive-ui/hooks'
|
import { useForm, useModalClose, useModalOptions, useMessage } from '@baota/naive-ui/hooks'
|
||||||
import { useThemeCssVar } from '@baota/naive-ui/theme'
|
import { useThemeCssVar } from '@baota/naive-ui/theme'
|
||||||
import { useError } from '@baota/hooks/error'
|
import { useError } from '@baota/hooks/error'
|
||||||
import { useStore } from '@components/FlowChart/useStore'
|
import { useStore } from '@/components/flowChart/useStore'
|
||||||
import { getSites, getPlugins } from '@api/access'
|
import { getSites, getPlugins } from '@api/access'
|
||||||
|
|
||||||
import { $t } from '@locales/index'
|
import { $t } from '@locales/index'
|
||||||
@@ -18,12 +18,12 @@ import {
|
|||||||
filterDeployTypeOptions,
|
filterDeployTypeOptions,
|
||||||
} from '@workflowView/lib/DeployUtils'
|
} from '@workflowView/lib/DeployUtils'
|
||||||
|
|
||||||
import SvgIcon from '@components/SvgIcon'
|
import SvgIcon from '@/components/svgIcon'
|
||||||
import DnsProviderSelect from '@components/DnsProviderSelect'
|
import DnsProviderSelect from '@/components/dnsProviderSelect'
|
||||||
import SearchOutlined from '@vicons/antd/es/SearchOutlined'
|
import SearchOutlined from '@vicons/antd/es/SearchOutlined'
|
||||||
|
|
||||||
import type { DeployNodeConfig, DeployNodeInputsConfig } from '@components/FlowChart/types'
|
import type { DeployNodeConfig, DeployNodeInputsConfig } from '@/components/flowChart/types'
|
||||||
import type { DnsProviderType } from '@components/DnsProviderSelect/types'
|
import type { DnsProviderType } from '@/components/dnsProviderSelect/types'
|
||||||
import type { VNode } from 'vue'
|
import type { VNode } from 'vue'
|
||||||
|
|
||||||
import styles from './index.module.css'
|
import styles from './index.module.css'
|
||||||
@@ -234,6 +234,9 @@ export default defineComponent({
|
|||||||
case 'lecdn':
|
case 'lecdn':
|
||||||
config.push(...formConfig.leCdnDeploy())
|
config.push(...formConfig.leCdnDeploy())
|
||||||
break
|
break
|
||||||
|
case 'rainyun-sslcenter':
|
||||||
|
config.push(...formConfig.rainyunSSLCenterDeploy())
|
||||||
|
break
|
||||||
case 'plugin':
|
case 'plugin':
|
||||||
// 插件部署配置
|
// 插件部署配置
|
||||||
config.push(
|
config.push(
|
||||||
|
|||||||
Reference in New Issue
Block a user