1
This commit is contained in:
@@ -26,7 +26,6 @@ const AdminPaymentConfig: React.FC = () => {
|
||||
wechat_private_key: map['payment_wechat_private_key'] || '',
|
||||
wechat_cert_serial_no: map['payment_wechat_cert_serial_no'] || '',
|
||||
wechat_api_v3_key: map['payment_wechat_api_v3_key'] || '',
|
||||
wechat_gateway: map['payment_wechat_gateway'] || '',
|
||||
wechat_notify_url: map['payment_wechat_notify_url'] || '',
|
||||
alipay_app_id: map['payment_alipay_app_id'] || '',
|
||||
alipay_private_key: map['payment_alipay_private_key'] || '',
|
||||
@@ -58,7 +57,6 @@ const AdminPaymentConfig: React.FC = () => {
|
||||
payment_wechat_private_key: values.wechat_private_key || '',
|
||||
payment_wechat_cert_serial_no: values.wechat_cert_serial_no || '',
|
||||
payment_wechat_api_v3_key: values.wechat_api_v3_key || '',
|
||||
payment_wechat_gateway: values.wechat_gateway || '',
|
||||
payment_wechat_notify_url: values.wechat_notify_url || '',
|
||||
payment_alipay_enabled: String(alipayEnabled),
|
||||
payment_alipay_app_id: values.alipay_app_id || '',
|
||||
@@ -168,9 +166,6 @@ const AdminPaymentConfig: React.FC = () => {
|
||||
<Form.Item name="wechat_api_v3_key" label="API v3 密钥">
|
||||
<Input.Password placeholder="API v3 密钥" size="large" disabled={!wechatEnabled} />
|
||||
</Form.Item>
|
||||
<Form.Item name="wechat_gateway" label="网关地址" extra="正式环境: https://api.mch.weixin.qq.com 沙箱环境(如适用)">
|
||||
<Input placeholder="https://api.mch.weixin.qq.com" size="large" disabled={!wechatEnabled} />
|
||||
</Form.Item>
|
||||
<Form.Item name="wechat_notify_url" label="回调地址" extra="用户支付成功后,微信会主动通知此地址,服务器收到通知后给用户加积分">
|
||||
<Input placeholder="https://yourdomain.com/api/payments/wechat/callback" size="large" disabled={!wechatEnabled} />
|
||||
</Form.Item>
|
||||
|
||||
Reference in New Issue
Block a user