From e067999f4eb15e142dcc48129ca64ba09877839f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=AF=E4=B9=90=E5=8A=A0=E5=86=B0?= <11869599+addie66@user.noreply.gitee.com> Date: Tue, 29 Sep 2026 15:18:05 +0800 Subject: [PATCH] =?UTF-8?q?```=20fix(shopro=5Fhuifu):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=B1=87=E4=BB=98=20onboard=20=E4=B8=9A=E5=8A=A1=E5=BC=80?= =?UTF-8?q?=E9=80=9A=E4=B8=AD=E7=9A=84=E9=93=B6=E8=A1=8C=E5=8D=A1=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E6=98=A0=E5=B0=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 系统中的 bank_account_type 与汇付的 card_type 定义相反, 需要进行正确的类型转换映射。 - 添加注释说明系统和汇付的类型定义差异 - 将 bank_account_type 进行转换后赋值给 cardType - 调整条件判断逻辑以匹配正确的卡类型 ``` --- .../library/onboard/HuifuOnboardBusiOpen.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/addons/shopro_huifu/library/onboard/HuifuOnboardBusiOpen.php b/addons/shopro_huifu/library/onboard/HuifuOnboardBusiOpen.php index d018667..adc37a1 100644 --- a/addons/shopro_huifu/library/onboard/HuifuOnboardBusiOpen.php +++ b/addons/shopro_huifu/library/onboard/HuifuOnboardBusiOpen.php @@ -86,7 +86,10 @@ class HuifuOnboardBusiOpen - $cardType = (string) ($form['bank_account_type'] ?? '0'); + // 系统 bank_account_type:0=对私,1=对公 + // 汇付 card_type:0=对公,1=对私法人,2=对私非法人 + $bankAccountType = (string) ($form['bank_account_type'] ?? '0'); + $cardType = $bankAccountType === '1' ? '0' : '1'; $cardInfo = [ @@ -116,7 +119,7 @@ class HuifuOnboardBusiOpen } - if ($cardType === '0') { + if ($cardType === '1') { $cardInfo['cert_type'] = '00'; @@ -164,7 +167,7 @@ class HuifuOnboardBusiOpen } - if ($cardType === '1' && !empty($fileMap['F08'])) { + if ($cardType === '0' && !empty($fileMap['F08'])) { $fileList[] = [