编辑代码

<?php


//     {
//         "key": "evaluate_status",
//         "operation": "read",
//         "type": "config_center"
//     }
$arr = [
"bd_code",
"bd_name",
"bd_nature",
"bd_currency_id",
"bd_representative",
"bd_condition",
"bd_project_id",
"bd_area",
"bd_phone",
"bd_opening_date",
"bd_address",
"bd_status",
"creator",
"group_code",
"deleted",
"created_at",
"updated_at",
"bd_code",
"bd_name",
"bd_short_name",
"bd_category",
"bd_type",
"bd_address",
"bd_address_detail",
"bd_is_cross_border",
"bd_company_type",
"bd_unified_social_credit_code",
"bd_establishment_date",
"bd_legal_representative_name",
"bd_legal_representative_contact",
"bd_legal_representative_id_type",
"bd_legal_representative_id_number",
"bd_contact_name",
"bd_contact_role",
"bd_contact_phone",
"bd_email",
"bd_taxpayer_type",
"bd_settlement_currency_id",
"bd_payment_terms",
"bd_invoice_type",
"bd_default_tax_rate",
"bd_collection_account",
"bd_bank_account",
"bd_bank_account_name",
"bd_bank_account_address",
"bd_shipment_address",
"bd_shipment_address_detail",
"bd_condition",
"bd_level",
"bd_status",
"creator",
"group_code",
"deleted",
"created_at",
"updated_at",
"bd_code",
"bd_number",
"bd_name",
"bd_type_id",
"bd_consignee",
"bd_consignee_phone",
"bd_shipper",
"bd_shipper_phone",
"bd_address",
"bd_address_detail",
"bd_status",
"creator",
"group_code",
"deleted",
"created_at",
"updated_at",
"bd_code",
"bd_name",
"bd_short_name",
"bd_contact_name",
"bd_contact_phone",
"bd_contact_address",
"bd_status",
"creator",
"group_code",
"deleted",
"created_at",
"updated_at",
"bd_code",
"bd_name",
"bd_status",
"creator",
"group_code",
"deleted",
"created_at",
"updated_at"
    ];

    $arr = array_unique($arr);
foreach ($arr as $item) 
{
    $res[] = [
        'key' => $item,
        'operation' => 'read',
        'type' => 'metadata' 
       
        
        ];
}

echo json_encode($res);