在用API创建产品时,提示:
array(4) {
["trace_id"]=> string(33) "yz7-0a34f81e-1661512067184-930398"
["code"]=> int(301000004)
["success"]=> bool(false)
["message"]=> string(43) "请求参数非法 零售扩展参数为空"
} | 调用接口:
$method = 'youzan.item.add';
$apiVersion = '1.0.0';
入参:
$data = [
"param" => [
"image_ids" => [5184218598],
"item_type" => 0,
"title" => "测试产品2",
"quantity" => 1,
"desc" => "测试",
"item_price_param" => ["price" => 5],
"category_param" => [
"category_properties" => [
"publics" => [
"id" => 7904,
"val_names" => "盒装"
]
]
],
"extra_param" => [
"ecard_extra" => [
"item_validity_day" => 100,
"sync_wechat_bag" => [
"code_type" => 0,
"card_color" => "Color010",
"card_title" => "卡券标题1",
],
"holidays_available" => false,
"effective_type" => 2,
"validity_type" => 1,
],
]
]
];
|
|
|
用手机打开
收藏
赞 0
···
回复
|
|
|
|