mirror of
https://github.com/certd/certd.git
synced 2025-11-25 09:10:11 +08:00
feat: 腾讯云cdn支持
This commit is contained in:
16
packages/plugins/src/tencent/abstract-tencent.js
Normal file
16
packages/plugins/src/tencent/abstract-tencent.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { AbstractPlugin } from '../abstract-plugin/index.js'
|
||||
|
||||
export class AbstractTencentPlugin extends AbstractPlugin {
|
||||
format (pem) {
|
||||
pem = pem.replace(/\r/g, '')
|
||||
pem = pem.replace(/\n\n/g, '\n')
|
||||
pem = pem.replace(/\n$/g, '')
|
||||
return pem
|
||||
}
|
||||
|
||||
checkRet (ret) {
|
||||
if (ret && ret.Error) {
|
||||
throw new Error('执行失败:' + ret.Error.Code + ',' + ret.Error.Message)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user