购物车

API - 商品详情

描述:商品详情

请求方式:GET

请求地址:v1/productsconfig

版本:v1

内部API调用方法名:Cart_productsConfig

请求参数

参数类型验证规则最大长度描述示例
   first_group_id int first_group_id与group_id、product_id三选一 11 一级分类ID 1
   group_id int first_group_id与group_id、product_id三选一 11 商品分组ID 1
   product_id int first_group_id与group_id、product_id三选一 11 商品ID 1

返回参数

参数类型验证规则最大长度描述示例
  _currency array[] - 货币信息
         Lid int - 货币ID 1
         Lcode string - 货币代码 CNY
         Lprefix string - 货币前缀
         Lsuffix string - 货币后缀
  _first_group array[] - 一级分类信息
         Lid int - 一级分类ID 1
         Lname int - 一级分类名称 分类1
   L_custom_fields array[] - 一级分类自定义字段
            Lname string - 名称 test
            Lvalue string - 11
   L_group array[] - 商品分组信息 1
            Lid int - 商品分组ID 1
            Lname int - 商品分组名称 商品分组1
            Lheadline string - 商品分组标题
            Ltagline string - 商品分组标语
    L_custom_fields array[] - 商品分组自定义字段
               Lname string - 名称 test
               Lvalue string - 11
    L_products array[] - 商品信息
               Lid int - 商品id 1
               Lname string - 商品名称 测试商品
               Ldescription string - 商品描述 这是一个描述
     L_host string - 产品主机名,及生成规则信息 ser100000000
                  Lshow int - 是否显示:1是,0否 1
                  Lprefix int - 主机前缀(show为0时,不返回此字段) ser
                  Lhost string - 主机名(show为0时,不返回此字段) ser735157216706
      L_rule array[] - 主机名生成规则(show为0时,不返回此字段) ser
                     Lupper int - 是否含大写:1是,0否 1
                     Llower int - 是否含小写:1是,0否 1
                     Lnum int - 是否含数字:1是,0否 1
                     Llen_num int - 长度 12
     L_password string - 产品密码,及生成规则信息 ser100000000
                  Lshow int - 是否显示:1是,0否 1
                  Lpassword string - 密码(show为0时,不返回此字段) u3GPInowGapB
      L_rule array[] - 密码生成规则(show为0时,不返回此字段) ser
                     Lupper int - 是否含大写:1是,0否 1
                     Llower int - 是否含小写:1是,0否 1
                     Lnum int - 是否含数字:1是,0否 1
                     Llen_num int - 长度 12
                     Lspecial int - 是否含特殊字符 1
               Lallow_qty int - 是否允许购买多个:1是,0否 1
               Lstock_control int - 是否开启库存控制:1是,0否 1
               Lqty int - 库存 1
     L_cycle array[] - 商品允许的周期
                  Lproduct_price price - 商品价格 100.00
                  Lsetup_fee price - 商品初装费 0.00
                  Lbillingcycle string - 周期 ontrial试用,monthly月付
                  Lpay_ontrial_cycle int - 周期为试用时的试用周期(仅周期为试用时才返回) 10
                  Lsaleprice price - 折扣价格 80.00
     L_configoptions array[] - 配置项信息
                  Lid int - 配置项ID 1
                  Lname string - 配置项名称 区域
                  Ltype int - 配置项类型:1Dropdown(默认)下拉,2radio单选,3Yes/No是/否,4quantity数量(应用价格), 5OperationSystem操作系统,6CpuDropdowncpu核心单选,7CpuQuantitycpu核心范围(应用价格), 8MemDropdown内存单选,9MemQuantity内存范围(应用价格),10BwDropdown带宽单选,11BwQuantity带宽范围(应用价格), 12LocationDropdown数据中心,13SystemDiskSizeDropdown系统盘容量单选,14SystemDiskSizeQuantity系统盘容量范围(应用价格), 15QuantityStage数量(阶段计费),16CpuQuantityStagecpu核心范围(阶段计费),17MemQuantityStage内存范围(阶段计费), 18BwQuantityStage带宽范围(阶段计费),19SystemDiskSizeQuantityStage系统盘容量范围(阶段计费),20RadioLevelLinkAge单选框-层级联动(专业版可用) 1
                  Lnotes string - 备注 这是一个备注
                  Lqty_minimum int - 最小值(type为数量类型的才返回) 1
                  Lqty_maximum int - 最大值(type为数量类型的才返回) 100
                  Lis_discount int - 是否支持折扣:1是,0否 1
                  Lunit string - 配置项自定义单位 M,GB
      L_sub array[] - 子项 正常数据{ "id": 85310, "config_id": 15299, "qty_minimum": 0, "qty_maximum": 0, "option_name": "1核", "option_name_first": "1", "pricing": "0.00", "qty_stage": 0, "show_pricing": "1核 ¥0.00元" };当配置项为12区域时数据结构为:{ "option_name": "默认", "option_name_first": "1", "country_code": "CN", "area": [ { "id": 85257, "pricing": "0.00", "area": "", "area_zh": "", "show_pricing": " ¥0.00元" } ], "qty_stage": 0 };当配置项为5操作系统时数据结构为:"CentOS": { "child": [ { "id": 85259, "version": "CentOS-7.6.1810-x64", "pricing": "0.00", "show_pricing": "CentOS-7.6.1810-x64 ¥0.00元" }, { "id": 85260, "version": "CentOS-8.1.1911-x64", "pricing": "0.00", "show_pricing": "CentOS-8.1.1911-x64 ¥0.00元" }, ], "ico_url": "/upload/common/system/2.svg", "qty_stage": 0 }
                     Lid int - 配置子项id 1
                     Lqty_minimum int - 子项最小值(配置项类型为数量类型时,才返回此字段) 1
                     Lqty_maximum int - 子项最大值(配置项类型为数量类型时,才返回此字段) 1
                     Lname string - 子项名称:子项|后的名称 1核
                     Lpricing string - 子项价格 0.00
                     Lcountry_code string - 国家代码(仅配置项类型为12LocationDropdown数据中心时才有返回字段) CN
                     Los_type string - 操作系统类型(仅配置项类型为5OperationSystem操作系统时才有返回字段) CentOS
                     Los_url string - 操作系统图标地址(仅配置项类型为5OperationSystem操作系统时才有返回字段) /upload/common/system/2.svg
     L_custom_fields array[] - 商品自定义字段 { "id": 86, "fieldname": "面板管理密码", "description": "1", "fieldtype": "password", "fieldoptions": "", "regexpr": "1", "required": 0 }
                  Lid int - 自定义字段ID 86
                  Lfieldname string - 自定义字段名称 面板管理密码
                  Ldescription string - 自定义字段描述 这是测试描述
                  Lfieldtype string - 自定义字段类型:password密码框,text文本,link链接,textarea文本域,dropdown下拉,tickbox选择框 password
                  Lfieldoptions string - 选项,用英文半角逗号分隔 1;2;3;4;5
                  Lregexpr string - 正则表达式验证字符串 \d+
                  Lrequired int - 是否必填:1是,0否 1