我正在尝试使用 WHMCS API 的“添加客户端”插入一些额外的客户端详细信息。但是插入发生了,但是当我在WHMCS客户区签入时,自定义字段不起作用。我在客户区customfield[1],[2]...[5]
添加了字段。代码片段如下
$postfields["action"] = "addclient";
$customfields = array(
'customfield[1]' => "ABC",
'customfield[2]' => "XYZ"
);
$postfields["customfields"] = base64_encode(serialize($customfields)
请提出解决方案。