1 回答
TA贡献1836条经验 获得超13个赞
您的查询字符串仍然可以通过$ _REQUEST变量在同一PHP接口中访问,但是它们也可以在$ args中使用:
public function GetLinkLeads($api, $args)
{
$GLOBALS['log']->fatal("args: " . print_r($args, true));
$GLOBALS['log']->fatal("request: " . print_r($_REQUEST, true));
}
网址:{sugar} / rest / v10 / customer / 1 / branch / 2 / offset / 3?qs = 4
sugarcrm.log
Wed Apr 24 12:06:27 2019 [19200][-none-][FATAL] args: Array
(
[__sugar_url] => v10/customer/1/branch/2/offset/3
[qs] => 4
[customer] => customer
[customer_id] => 1
[branch] => branch
[branch_id] => 2
[offset] => offset
[offset_num] => 3
)
Wed Apr 24 12:06:27 2019 [19200][-none-][FATAL] request: Array
(
[__sugar_url] => v10/customer/1/branch/2/offset/3
[qs] => 4
)
- 1 回答
- 0 关注
- 147 浏览
添加回答
举报