mirror of
https://github.com/allinssl/allinssl.git
synced 2025-12-12 09:44:09 +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推送证书...")
|
||||
return webhook.Deploy(cfg)
|
||||
case "rainyun-sslcenter":
|
||||
logger.Debug("通过Webhook推送证书...")
|
||||
logger.Debug("部署到雨云证书中...")
|
||||
return DeployRainyunSSLCenter(cfg)
|
||||
default:
|
||||
return fmt.Errorf("不支持的部署: %s", providerName)
|
||||
|
||||
@@ -90,7 +90,7 @@ func DeployRainyunSSLCenter(cfg map[string]any) error {
|
||||
|
||||
// 更新证书中心
|
||||
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 {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -143,6 +143,10 @@ export function createNodeFormConfig() {
|
||||
return [this.input($t('t_0_1747296173751'), 'siteName', { placeholder: $t('t_0_1748589752275') })]
|
||||
},
|
||||
|
||||
rainyunSSLCenterDeploy(){
|
||||
return [this.input("证书ID", 'cert_id', { placeholder:"雨云证书中心中显示的ID"})]
|
||||
},
|
||||
|
||||
/**
|
||||
* 创建1Panel站点相关字段
|
||||
* @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 { useThemeCssVar } from '@baota/naive-ui/theme'
|
||||
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 { $t } from '@locales/index'
|
||||
@@ -18,12 +18,12 @@ import {
|
||||
filterDeployTypeOptions,
|
||||
} from '@workflowView/lib/DeployUtils'
|
||||
|
||||
import SvgIcon from '@components/SvgIcon'
|
||||
import DnsProviderSelect from '@components/DnsProviderSelect'
|
||||
import SvgIcon from '@/components/svgIcon'
|
||||
import DnsProviderSelect from '@/components/dnsProviderSelect'
|
||||
import SearchOutlined from '@vicons/antd/es/SearchOutlined'
|
||||
|
||||
import type { DeployNodeConfig, DeployNodeInputsConfig } from '@components/FlowChart/types'
|
||||
import type { DnsProviderType } from '@components/DnsProviderSelect/types'
|
||||
import type { DeployNodeConfig, DeployNodeInputsConfig } from '@/components/flowChart/types'
|
||||
import type { DnsProviderType } from '@/components/dnsProviderSelect/types'
|
||||
import type { VNode } from 'vue'
|
||||
|
||||
import styles from './index.module.css'
|
||||
@@ -234,6 +234,9 @@ export default defineComponent({
|
||||
case 'lecdn':
|
||||
config.push(...formConfig.leCdnDeploy())
|
||||
break
|
||||
case 'rainyun-sslcenter':
|
||||
config.push(...formConfig.rainyunSSLCenterDeploy())
|
||||
break
|
||||
case 'plugin':
|
||||
// 插件部署配置
|
||||
config.push(
|
||||
|
||||
Reference in New Issue
Block a user