请求代码两种情况如下:
(1)
$method = 'youzan.crm.customer.points.sync';
$apiVersion = '3.1.0';
//设置参数
$params =[
"reason"=>"用户同步积分",
"is_do_extpoint"=>true,
// "biz_value"=>"DE9SDFS",
"user"=>["account_type"=>2,"account_id"=>'18503087102'],
"points"=>9
];
$response = $client->post($method, $apiVersion, $params);返回结果如下:
array(4) { ["trace_id"]=> string(33) "yz7-0a34f812-1667376111995-151592" ["code"]=> int(141500101) ["success"]=> bool(false) ["message"]=> string(14) "invalid params" }
====================
(2)
$method = 'youzan.crm.customer.points.sync';
$apiVersion = '3.1.0';
//设置参数
$params =[
"reason"=>"用户同步积分",
"is_do_extpoint"=>true,
// "biz_value"=>"DE9SDFS",
"user"=>"[\"account_type\"=>2,\"account_id\"=>\"18503087102\"]",
"points"=>9
];
$response = $client->post($method, $apiVersion, $params);
返回结果如下:
array(4) { ["trace_id"]=> string(33) "yz7-0ad26a52-1667376621132-664489" ["code"]=> int(141500101) ["success"]=> bool(false) ["message"]=> string(14) "invalid params" }
调整多次不清楚问题原因,还请帮忙查询下是什么原因造成的
本帖最后由 友道会 于 2022-11-2 16:16 编辑
|
|
用手机打开
收藏
赞 0
···
回复
|
|
|
|