你好请问下这个能不能问下你细节没搞懂
视频号调用添加商品接口,提示 10020097-商品缺少必要参数?接口: 添加商品(https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent/API/spu/add_spu.html) 用户Id: wx0590e5f5f32c7114 返参: { "errcode": 10020097, "errmsg": "商品缺少必要参数" } 操作时间: 2023-01-09 15:57:20 入参: { "attrs": [ { "attr_key": "产地", "attr_value": "中国大陆" }, { "attr_key": "厂名", "attr_value": "德阳心瑞食品有限公司" }, { "attr_key": "品牌", "attr_value": "米仓山" }, { "attr_key": "货号", "attr_value": "1" }, { "attr_key": "售卖方式", "attr_value": "单品" }, { "attr_key": "保质期", "attr_value": "365" }, { "attr_key": "规格", "attr_value": "500克" }, { "attr_key": "产品标准号", "attr_value": "GB/T23587" }, { "attr_key": "储藏方法", "attr_value": "放置阴凉、干燥通风处" }, { "attr_key": "套餐份量", "attr_value": "5人份" }, { "attr_key": "配料表", "attr_value": "红薯淀粉、玉米淀粉、小麦淀粉 、食用盐、水" }, { "attr_key": "食品添加剂", "attr_value": "无" }, { "attr_key": "省份", "attr_value": "四川省" }, { "attr_key": "系列", "attr_value": "红薯粉" }, { "attr_key": "生产许可证编号", "attr_value": "SC12351060300015" }, { "attr_key": "厂址", "attr_value": "四川省德阳市旌阳区孝泉镇江河村10组(原两河村四组)" }, { "attr_key": " 生产日期", "attr_value": " 2022年05月01日 至 2022年05月20日 " }, { "attr_key": "套餐周期", "attr_value": "1周" }, { "attr_key": "配送频次", "attr_value": "1周2次" }, { "attr_key": "厂家联系方式", "attr_value": "028-87657848" } ], "cats": [ { "cat_id": 7419 }, { "cat_id": 7439 }, { "cat_id": 7446 } ], "descInfo": { "imgs": [ "https://mmecimage.cn/p/wx0590e5f5f32c7114/HFj4a56ULm_Y3LlXR7mFY1yVrKV8Q_pCG5aa0ehKkCM", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HAeWsUtCoat2-61o7zu4-0JZerWUtDtippjYsUzCpRY", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HCqLN09z9A7d5Z3PVwz6rs73WDhb3WTQcDzDbfJ_KYA", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HKTKcmYHAAjU0eim7sIYLj5ACDekc7ckPxSknCIX7Ww", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HA7rkaLPHRnS45NOM8aSg8hgyBzqLXzUnu6jSbT27bE", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HAgIEWKL-CTxTNDvBFCzaWFGNQOovNidGRCpnLYVumg", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HBvj18oh5ObQIt-IKgDIjDBD9uO6SfS7GfgosbbhOiw", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HI8KvGU0YOoiu8ZNCEGv0E7lnUmkQhXEGz5owA7ygaM", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HIAke4VjKuya6lFbjVZGo3TbkQVYU6_3jnGMnc2s2Ng", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HJ9mIIeqFphhvHkz_GtYIGC7MCkjiFS5VUlK86Ew1HY" ] }, "expressInfo": { "template_id": "168363764004" }, "headImgs": [ "https://mmecimage.cn/p/wx0590e5f5f32c7114/HEvEGoXzIGS0A_X7rh787M8H6_dE_FE7lGZBZGPvlyY", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HACjYxHGpZckeIcEITJVV3bcFBCybWV5u7_Dd8j0__U", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HMlxVDS6T4JtZ3Of0awB0jqVtANHfQA4eKH8yOTA2-E", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HP0a3jcfeB_0JbIv82UekzwQ8xii8F9SHzRatcw2D_4", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HBYBx62lCOMhl5BPd0stSTnxly2G2tmBa_wMfLeRVqY" ], "outProductId": "47354491", "params": { "sub_title": "四川红薯粉条1斤手工川粉红苕地瓜干货", "cats": [ { "$ref": "$.cats[0]" }, { "$ref": "$.cats[1]" }, { "$ref": "$.cats[2]" } ], "skus": [ { "market_price": 5500, "out_sku_id": "1612357795389243392", "sale_price": 2400, "sku_attrs": [ { "attr_key": "版本", "attr_value": "规格值" } ], "stock_num": 1000 } ], "desc_info": { "$ref": "$.descInfo" }, "out_product_id": "47354491", "title": "四川红薯粉条1斤手工川粉红苕地瓜干货粉丝麻辣烫火锅粉酸辣粉条", "express_info": { "$ref": "$.expressInfo" }, "head_imgs": [ "https://mmecimage.cn/p/wx0590e5f5f32c7114/HEvEGoXzIGS0A_X7rh787M8H6_dE_FE7lGZBZGPvlyY", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HACjYxHGpZckeIcEITJVV3bcFBCybWV5u7_Dd8j0__U", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HMlxVDS6T4JtZ3Of0awB0jqVtANHfQA4eKH8yOTA2-E", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HP0a3jcfeB_0JbIv82UekzwQ8xii8F9SHzRatcw2D_4", "https://mmecimage.cn/p/wx0590e5f5f32c7114/HBYBx62lCOMhl5BPd0stSTnxly2G2tmBa_wMfLeRVqY" ], "attrs": [ { "$ref": "$.attrs[0]" }, { "$ref": "$.attrs[1]" }, { "$ref": "$.attrs[2]" }, { "$ref": "$.attrs[3]" }, { "$ref": "$.attrs[4]" }, { "$ref": "$.attrs[5]" }, { "$ref": "$.attrs[6]" }, { "$ref": "$.attrs[7]" }, { "$ref": "$.attrs[8]" }, { "$ref": "$.attrs[9]" }, { "$ref": "$.attrs[10]" }, { "$ref": "$.attrs[11]" }, { "$ref": "$.attrs[12]" }, { "$ref": "$.attrs[13]" }, { "$ref": "$.attrs[14]" }, { "$ref": "$.attrs[15]" }, { "$ref": "$.attrs[16]" }, { "$ref": "$.attrs[17]" }, { "$ref": "$.attrs[18]" }, { "$ref": "$.attrs[19]" } ] }, "requestMethod": "POST", "skus": [ { "$ref": "$.params.skus[0]" } ], "subTitle": "四川红薯粉条1斤手工川粉红苕地瓜干货", "title": "四川红薯粉条1斤手工川粉红苕地瓜干货粉丝麻辣烫火锅粉酸辣粉条", "url": "https://api.weixin.qq.com/channels/ec/product/add?access_token=64_Y-cVHZdDMcxtkpEOEFfN3-UCxUefrPVYFQ0xLkORvXI3iPAFILd0BsUEWyY9iQTsE_wZETWexsb2OUbLT2AFSSmxqpa_vEUQj451Ib_YZJOwsJhbkGa-Kgocq_m-QKTvbi2koKfNgWf-Av8-LKJhAJDQPO&service_id=2613854150732496900&specification_id=Advanced" }
2023-03-30