diff --git a/video-gen-admin/src/pages/AdminPaymentConfig.tsx b/video-gen-admin/src/pages/AdminPaymentConfig.tsx index c125f1c1..279aeb69 100644 --- a/video-gen-admin/src/pages/AdminPaymentConfig.tsx +++ b/video-gen-admin/src/pages/AdminPaymentConfig.tsx @@ -22,8 +22,10 @@ const AdminPaymentConfig: React.FC = () => { data.forEach((c: any) => { map[c.key] = c.value; }); form.setFieldsValue({ wechat_mch_id: map['payment_wechat_mch_id'] || '', - wechat_api_key: map['payment_wechat_api_key'] || '', - wechat_cert_path: map['payment_wechat_cert_path'] || '', + 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'] || '', @@ -51,8 +53,10 @@ const AdminPaymentConfig: React.FC = () => { payment_mock: String(mockMode), payment_wechat_enabled: String(wechatEnabled), payment_wechat_mch_id: values.wechat_mch_id || '', - payment_wechat_api_key: values.wechat_api_key || '', - payment_wechat_cert_path: values.wechat_cert_path || '', + 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 || '', @@ -150,13 +154,19 @@ const AdminPaymentConfig: React.FC = () => { - - + + - - + + - + + + + + + +