fix: fix pemContent decode error bug for WeChat Pay provider (#1751)

This commit is contained in:
Wenpeng Chen
2023-04-19 22:13:13 +08:00
committed by GitHub
parent 8db87a7559
commit 6572ab69ce
2 changed files with 15 additions and 1 deletions

View File

@ -821,6 +821,20 @@ class ProviderEditPage extends React.Component {
</React.Fragment>
) : null
}
{
this.state.provider.type === "WeChat Pay" ? (
<Row style={{marginTop: "20px"}} >
<Col style={{marginTop: "5px"}} span={(Setting.isMobile()) ? 22 : 2}>
{Setting.getLabel("cert", "cert")} :
</Col>
<Col span={22} >
<Input value={this.state.provider.cert} onChange={e => {
this.updateProviderField("cert", e.target.value);
}} />
</Col>
</Row>
) : null
}
{this.getAppIdRow(this.state.provider)}
<Row style={{marginTop: "20px"}} >
<Col style={{marginTop: "5px"}} span={(Setting.isMobile()) ? 22 : 2}>