修改两处:
1、增加控制器验证
if($data['organization_type'] !== 2 && isset($data['id_card_info']['id_card_address'])){
unset($data['id_card_info']['id_card_address']);
}
2、修改加密验证参数
protected function getSensitiveFieldsName()
{
return [
'contact_name',
'contact_id_number',
'mobile_phone',
'contact_email',
'id_card_name',
'id_card_number',
'id_card_address',
'id_doc_name',
'id_doc_number',
'id_doc_address',
'name',
'id_number',
'account_name',
'account_number',
'contact_id_card_number',
'contact_email',
'openid',
'ubo_id_doc_name',
'ubo_id_doc_number',
'ubo_id_doc_address',
'bank_address_code',
];
}