https://op.jinritemai.com/docs/question-docs/92/3288 商品创建接口中的字段:product_format_new,如何传入?

https://op.jinritemai.com/docs/api-docs/14/1373 /product/getCatePropertyV2

https://op.jinritemai.com/docs/api-docs/14/249 /product/addV2

保质期

保质期填写格式:https://op.jinritemai.com/docs/question-docs/92/4317

"2988":[{"name":"12月","value":0,"diy_type":0}]

注意:

保质期这个属性需要提交审核后才会写入,需要在发布商品时将commit参数设置为true。

"data_type": "float"
4 不行,4.0 可以,文档意思看起来 4 是可以的,可能是迭代过程中有问题了
2024-12-05
当添加商品后,类目属性的净含量和保质期有丢失,那么需要确保在传入的参数中有此类属性,并且在传参时,
净含量和保质期需要传入单位,例如::
保质期 "2988":[{"name":"365天","diy_type":0,"value":0}]
净含量 "3299":[{"name":"20g","diy_type":0,"value":0}]

{
  "cid": 20687,
  "category_id": 20687,
  "property_name": "保质期",
  "relation_id": 0,
  "has_sub_property": false,
  "options": [],
  "measure_templates": [
    {
      "template_id": 187,
      "value_modules": [
        {
          "prefix": "",
          "suffix": "",
          "input_type": "input",
          "values": [],
          "units": [
            {
              "unit_id": 10,
              "unit_name": "年"
            },
            {
              "unit_id": 6,
              "unit_name": "天"
            },
            {
              "unit_id": 7,
              "unit_name": "月"
            }
          ],
          "validate_rule": {
            "unit_rules": [
              {
                "unit_id": 10,
                "min": 0.01,
                "max": 10
              },
              {
                "min": 3.6,
                "max": 3600,
                "unit_id": 6
              },
              {
                "unit_id": 7,
                "min": 0.12,
                "max": 120
              }
            ],
            "time_format": "",
            "min": 0,
            "max": 0,
            "precision": 3,
            "data_type": "float"
          },
          "module_id": 437,
          "value_required": true
        }
      ],
      "display_name": "年-天-月"
    }
  ],
  "sequence": 0,
  "important_type": 1,
  "required": 1,
  "status": 0,
  "multi_select_max": 5,
  "property_type": 0,
  "property_id": 2988,
  "diy_type": 0,
  "type": "measure"
}