lass="blockcode">- $my_params = array(
- 'title' => '翠哥测试店铺在qa号',
- 'price' => '8080',
- 'image_ids' => 1098095165,
- 'desc' => '翠翠在qa环境下二号测试店铺',
- 'is_display' => 1, // 是否立即上架
- 'item_type' => 0, // 0:普通商品 35:酒店商品 60:虚拟商品 61:电子卡券
- 'quantity' => 80,
- 'tag_ids' => '101468933,101507839', // 分组列表(分类)
- 'sku_stocks' => json_encode(array(
- array(
- 'price' => 10000, // 单位 分
- 'quantity' => 65,
- 'item_no' => 'MOYU-gl',
- 'skus' => array(
- ['k' => '颜色', 'v' => '绿色'],
- ['k' => '尺寸', 'v' => 'l']
- )
- ),
- array(
- 'price' => 10200, // 单位 分
- 'quantity' => 691,
- 'item_no' => 'MOYU-bl',
- 'skus' => array(
- ['k' => '颜色', 'v' => '蓝色'],
- ['k' => '尺寸', 'v' => 'l']
- )
- ),
- array(
- 'price' => 10200, // 单位 分
- 'quantity' => 65,
- 'item_no' => 'MOYU-gm',
- 'skus' => array(
- ['k' => '颜色', 'v' => '绿色'],
- ['k' => '尺寸', 'v' => 'm']
- )
- ),
- array(
- 'price' => 11200, // 单位 分
- 'quantity' => 619,
- 'item_no' => 'MOYU-bm',
- 'skus' => array(
- ['k' => '颜色', 'v' => '蓝色'],
- ['k' => '尺寸', 'v' => 'm']
- )
- )
- )),
- 'sku_weight' => '[ { "s1":1217, "s2":1367, "s3":303435, "weight":100 }, { "s1":1217, "s2":1367, "s3":6356, "weight":100 }, { "s1":1217, "s2":1367, "s3":6356, "weight":100 }, { "s1":1217, "s2":1367, "s3":6356, "weight":100 } ]'
- );
复制代码
使用改代码创建商品时返回:
- Array
- (
- [error_response] => Array
- (
- [msg] => Sku重量信息不满足格式要求
- [code] => 121009307
- )
- )
复制代码
请问应该怎么解决?
本帖最后由 QQWorld 于 2018-5-18 16:36 编辑
|