gpt4 book ai didi

api - 不使用 WHMCS API 插入的自定义字段

转载 作者:行者123 更新时间:2023-12-04 23:32:19 26 4
gpt4 key购买 nike

我正在尝试使用 WHMCS API 的“添加客户端”插入一些额外的客户端详细信息。然而,插入发生了,但是自定义字段没有效果,当我在 WHMCS 客户区检查时。我在客户区中添加了 customfield[1],[2]...[5] 作为字段.代码片段如下

$postfields["action"] = "addclient"; 

$customfields = array(
'customfield[1]' => "ABC",
'customfield[2]' => "XYZ"
);

$postfields["customfields"] = base64_encode(serialize($customfields)

请提出解决方案。

最佳答案

我已经解决了这个问题。

我刚刚改变了

$customfields = array(
'customfield[1]' => "ABC",
'customfield[2]' => "XYZ"
);

$postfields["customfields"] = base64_encode(serialize($customfields)

进入

$postfields["customfield[1]"] = "ABC";
$postfields["customfield[2]"] = "XYZ";

关于api - 不使用 WHMCS API 插入的自定义字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8133622/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com