<?php

return ["title" => "购物车", "item" => ["products" => ["title" => "商品概要", "desc" => "商品概要", "url" => "v1/products", "method" => "GET", "auth" => "智简魔方", "version" => "v1", "param" => [["name" => "first_group_id", "type" => "int", "require" => "first_group_id与group_id、product_id三选一或者不传", "max" => "11", "desc" => "一级分类ID", "example" => "1", "child" => []], ["name" => "group_id", "type" => "int", "require" => "first_group_id与group_id、product_id三选一或者不传", "max" => "11", "desc" => "商品分组ID", "example" => "1", "child" => []], ["name" => "product_id", "type" => "int", "require" => "first_group_id与group_id、product_id三选一或者不传", "max" => "11", "desc" => "商品ID", "example" => "1", "child" => []]], "return" => [["name" => "currency", "type" => "array[]", "require" => "", "max" => "-", "desc" => "货币信息", "example" => "", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "-", "desc" => "货币ID", "example" => "1", "child" => []], ["name" => "code", "type" => "string", "require" => "", "max" => "-", "desc" => "货币代码", "example" => "CNY", "child" => []], ["name" => "prefix", "type" => "string", "require" => "", "max" => "-", "desc" => "货币前缀", "example" => "￥", "child" => []], ["name" => "suffix", "type" => "string", "require" => "", "max" => "-", "desc" => "货币后缀", "example" => "元", "child" => []]]], ["name" => "first_group", "type" => "array[]", "require" => "", "max" => "-", "desc" => "一级分类信息", "example" => "", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "-", "desc" => "一级分类ID", "example" => "1", "child" => []], ["name" => "name", "type" => "int", "require" => "", "max" => "-", "desc" => "一级分类名称", "example" => "分类1", "child" => []], ["name" => "custom_fields", "type" => "array[]", "require" => "", "max" => "-", "desc" => "一级分类自定义字段", "example" => "", "child" => [["name" => "name", "type" => "string", "require" => "", "max" => "-", "desc" => "名称", "example" => "test", "child" => []], ["name" => "value", "type" => "string", "require" => "", "max" => "-", "desc" => "值", "example" => "11", "child" => []]]], ["name" => "group", "type" => "array[]", "require" => "", "max" => "-", "desc" => "商品分组信息", "example" => "1", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "-", "desc" => "商品分组ID", "example" => "1", "child" => []], ["name" => "name", "type" => "int", "require" => "", "max" => "-", "desc" => "商品分组名称", "example" => "商品分组1", "child" => []], ["name" => "headline", "type" => "string", "require" => "", "max" => "-", "desc" => "商品分组标题", "example" => "", "child" => []], ["name" => "tagline", "type" => "string", "require" => "", "max" => "-", "desc" => "商品分组标语", "example" => "", "child" => []], ["name" => "custom_fields", "type" => "array[]", "require" => "", "max" => "-", "desc" => "商品分组自定义字段", "example" => "", "child" => [["name" => "name", "type" => "string", "require" => "", "max" => "-", "desc" => "名称", "example" => "test", "child" => []], ["name" => "value", "type" => "string", "require" => "", "max" => "-", "desc" => "值", "example" => "11", "child" => []]]], ["name" => "product", "type" => "array[]", "require" => "", "max" => "-", "desc" => "商品列表信息", "example" => "", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "-", "desc" => "商品ID", "example" => "1", "child" => []], ["name" => "type", "type" => "string", "require" => "", "max" => "-", "desc" => "商品类型", "example" => "dcimcloud", "child" => []], ["name" => "name", "type" => "string", "require" => "", "max" => "-", "desc" => "商品名称", "example" => "魔方云", "child" => []], ["name" => "description", "type" => "string", "require" => "", "max" => "-", "desc" => "商品描述", "example" => "这是一个商品描述", "child" => []], ["name" => "billingcycle", "type" => "string", "require" => "", "max" => "-", "desc" => "商品周期", "example" => "onetime", "child" => []], ["name" => "product_price", "type" => "price", "require" => "", "max" => "-", "desc" => "商品价格", "example" => "100.00", "child" => []], ["name" => "setup_fee", "type" => "price", "require" => "", "max" => "-", "desc" => "初装费", "example" => "10.00", "child" => []], ["name" => "stock_control", "type" => "int", "require" => "", "max" => "-", "desc" => "库存控制:0未开启,1已开启", "example" => "1", "child" => []], ["name" => "qty", "type" => "int", "require" => "", "max" => "-", "desc" => "库存", "example" => "10", "child" => []], ["name" => "ontrial", "type" => "array[]", "require" => "", "max" => "-", "desc" => "试用信息", "example" => "", "child" => [["name" => "ontrial", "type" => "int", "require" => "", "max" => "-", "desc" => "是否启用试用:1启用,0否", "example" => "1", "child" => []], ["name" => "ontrial_cycle", "type" => "int", "require" => "", "max" => "-", "desc" => "试用周期:当ontrial=1时,才会返回此字段", "example" => "10", "child" => []], ["name" => "ontrial_cycle_type", "type" => "int", "require" => "", "max" => "-", "desc" => "试用类型:天day,小时hour:当ontrial=1时,才会返回此字段", "example" => "day", "child" => []], ["name" => "ontrial_price", "type" => "price", "require" => "", "max" => "-", "desc" => "试用价格:当ontrial=1时,才会返回此字段", "example" => "10.00", "child" => []], ["name" => "ontrial_setup_fee", "type" => "price", "require" => "", "max" => "-", "desc" => "试用初装费:当ontrial=1时,才会返回此字段", "example" => "0.00", "child" => []]]], ["name" => "sale_price", "type" => "price", "require" => "否", "max" => "-", "desc" => "商品折扣后价格(当客户拥有此商品的分组折扣时,才返回)", "example" => "80.00", "child" => []], ["name" => "bates", "type" => "price", "require" => "否", "max" => "-", "desc" => "商品折扣金额(当客户拥有此商品的分组折扣时,才返回)", "example" => "20.00", "child" => []]]]]]]]]], "productsConfig" => ["title" => "商品详情", "desc" => "商品详情", "url" => "v1/productsconfig", "method" => "GET", "auth" => "智简魔方", "version" => "v1", "param" => [["name" => "first_group_id", "type" => "int", "require" => "first_group_id与group_id、product_id三选一", "max" => "11", "desc" => "一级分类ID", "example" => "1", "child" => []], ["name" => "group_id", "type" => "int", "require" => "first_group_id与group_id、product_id三选一", "max" => "11", "desc" => "商品分组ID", "example" => "1", "child" => []], ["name" => "product_id", "type" => "int", "require" => "first_group_id与group_id、product_id三选一", "max" => "11", "desc" => "商品ID", "example" => "1", "child" => []]], "return" => [["name" => "currency", "type" => "array[]", "require" => "", "max" => "-", "desc" => "货币信息", "example" => "", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "-", "desc" => "货币ID", "example" => "1", "child" => []], ["name" => "code", "type" => "string", "require" => "", "max" => "-", "desc" => "货币代码", "example" => "CNY", "child" => []], ["name" => "prefix", "type" => "string", "require" => "", "max" => "-", "desc" => "货币前缀", "example" => "￥", "child" => []], ["name" => "suffix", "type" => "string", "require" => "", "max" => "-", "desc" => "货币后缀", "example" => "元", "child" => []]]], ["name" => "first_group", "type" => "array[]", "require" => "", "max" => "-", "desc" => "一级分类信息", "example" => "", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "-", "desc" => "一级分类ID", "example" => "1", "child" => []], ["name" => "name", "type" => "int", "require" => "", "max" => "-", "desc" => "一级分类名称", "example" => "分类1", "child" => []], ["name" => "custom_fields", "type" => "array[]", "require" => "", "max" => "-", "desc" => "一级分类自定义字段", "example" => "", "child" => [["name" => "name", "type" => "string", "require" => "", "max" => "-", "desc" => "名称", "example" => "test", "child" => []], ["name" => "value", "type" => "string", "require" => "", "max" => "-", "desc" => "值", "example" => "11", "child" => []]]], ["name" => "group", "type" => "array[]", "require" => "", "max" => "-", "desc" => "商品分组信息", "example" => "1", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "-", "desc" => "商品分组ID", "example" => "1", "child" => []], ["name" => "name", "type" => "int", "require" => "", "max" => "-", "desc" => "商品分组名称", "example" => "商品分组1", "child" => []], ["name" => "headline", "type" => "string", "require" => "", "max" => "-", "desc" => "商品分组标题", "example" => "", "child" => []], ["name" => "tagline", "type" => "string", "require" => "", "max" => "-", "desc" => "商品分组标语", "example" => "", "child" => []], ["name" => "custom_fields", "type" => "array[]", "require" => "", "max" => "-", "desc" => "商品分组自定义字段", "example" => "", "child" => [["name" => "name", "type" => "string", "require" => "", "max" => "-", "desc" => "名称", "example" => "test", "child" => []], ["name" => "value", "type" => "string", "require" => "", "max" => "-", "desc" => "值", "example" => "11", "child" => []]]], ["name" => "products", "type" => "array[]", "require" => "", "max" => "-", "desc" => "商品信息", "example" => "", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "-", "desc" => "商品id", "example" => "1", "child" => []], ["name" => "name", "type" => "string", "require" => "", "max" => "-", "desc" => "商品名称", "example" => "测试商品", "child" => []], ["name" => "description", "type" => "string", "require" => "", "max" => "-", "desc" => "商品描述", "example" => "这是一个描述", "child" => []], ["name" => "host", "type" => "string", "require" => "", "max" => "-", "desc" => "产品主机名,及生成规则信息", "example" => "ser100000000", "child" => [["name" => "show", "type" => "int", "require" => "", "max" => "-", "desc" => "是否显示:1是,0否", "example" => "1", "child" => []], ["name" => "prefix", "type" => "int", "require" => "", "max" => "-", "desc" => "主机前缀(show为0时,不返回此字段)", "example" => "ser", "child" => []], ["name" => "host", "type" => "string", "require" => "", "max" => "-", "desc" => "主机名(show为0时,不返回此字段)", "example" => "ser735157216706", "child" => []], ["name" => "rule", "type" => "array[]", "require" => "", "max" => "-", "desc" => "主机名生成规则(show为0时,不返回此字段)", "example" => "ser", "child" => [["name" => "upper", "type" => "int", "require" => "", "max" => "-", "desc" => "是否含大写:1是,0否", "example" => "1", "child" => []], ["name" => "lower", "type" => "int", "require" => "", "max" => "-", "desc" => "是否含小写:1是,0否", "example" => "1", "child" => []], ["name" => "num", "type" => "int", "require" => "", "max" => "-", "desc" => "是否含数字:1是,0否", "example" => "1", "child" => []], ["name" => "len_num", "type" => "int", "require" => "", "max" => "-", "desc" => "长度", "example" => "12", "child" => []]]]]], ["name" => "password", "type" => "string", "require" => "", "max" => "-", "desc" => "产品密码,及生成规则信息", "example" => "ser100000000", "child" => [["name" => "show", "type" => "int", "require" => "", "max" => "-", "desc" => "是否显示:1是,0否", "example" => "1", "child" => []], ["name" => "password", "type" => "string", "require" => "", "max" => "-", "desc" => "密码(show为0时,不返回此字段)", "example" => "u3GPInowGapB", "child" => []], ["name" => "rule", "type" => "array[]", "require" => "", "max" => "-", "desc" => "密码生成规则(show为0时,不返回此字段)", "example" => "ser", "child" => [["name" => "upper", "type" => "int", "require" => "", "max" => "-", "desc" => "是否含大写:1是,0否", "example" => "1", "child" => []], ["name" => "lower", "type" => "int", "require" => "", "max" => "-", "desc" => "是否含小写:1是,0否", "example" => "1", "child" => []], ["name" => "num", "type" => "int", "require" => "", "max" => "-", "desc" => "是否含数字:1是,0否", "example" => "1", "child" => []], ["name" => "len_num", "type" => "int", "require" => "", "max" => "-", "desc" => "长度", "example" => "12", "child" => []], ["name" => "special", "type" => "int", "require" => "", "max" => "-", "desc" => "是否含特殊字符", "example" => "1", "child" => []]]]]], ["name" => "allow_qty", "type" => "int", "require" => "", "max" => "-", "desc" => "是否允许购买多个:1是,0否", "example" => "1", "child" => []], ["name" => "stock_control", "type" => "int", "require" => "", "max" => "-", "desc" => "是否开启库存控制:1是,0否", "example" => "1", "child" => []], ["name" => "qty", "type" => "int", "require" => "", "max" => "-", "desc" => "库存", "example" => "1", "child" => []], ["name" => "cycle", "type" => "array[]", "require" => "", "max" => "-", "desc" => "商品允许的周期", "example" => "", "child" => [["name" => "product_price", "type" => "price", "require" => "", "max" => "-", "desc" => "商品价格", "example" => "100.00", "child" => []], ["name" => "setup_fee", "type" => "price", "require" => "", "max" => "-", "desc" => "商品初装费", "example" => "0.00", "child" => []], ["name" => "billingcycle", "type" => "string", "require" => "", "max" => "-", "desc" => "周期", "example" => "ontrial试用,monthly月付", "child" => []], ["name" => "pay_ontrial_cycle", "type" => "int", "require" => "", "max" => "-", "desc" => "周期为试用时的试用周期(仅周期为试用时才返回)", "example" => "10", "child" => []], ["name" => "saleprice", "type" => "price", "require" => "", "max" => "-", "desc" => "折扣价格", "example" => "80.00", "child" => []]]], ["name" => "configoptions", "type" => "array[]", "require" => "", "max" => "-", "desc" => "配置项信息", "example" => "", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "-", "desc" => "配置项ID", "example" => "1", "child" => []], ["name" => "name", "type" => "string", "require" => "", "max" => "-", "desc" => "配置项名称", "example" => "区域", "child" => []], ["name" => "type", "type" => "int", "require" => "", "max" => "-", "desc" => "配置项类型:1Dropdown(默认)下拉,2radio单选,3Yes/No是/否,4quantity数量(应用价格),
                            5OperationSystem操作系统,6CpuDropdowncpu核心单选,7CpuQuantitycpu核心范围(应用价格),
                            8MemDropdown内存单选,9MemQuantity内存范围(应用价格),10BwDropdown带宽单选,11BwQuantity带宽范围(应用价格),
                            12LocationDropdown数据中心,13SystemDiskSizeDropdown系统盘容量单选,14SystemDiskSizeQuantity系统盘容量范围(应用价格),
                            15QuantityStage数量(阶段计费),16CpuQuantityStagecpu核心范围(阶段计费),17MemQuantityStage内存范围(阶段计费),
                            18BwQuantityStage带宽范围(阶段计费),19SystemDiskSizeQuantityStage系统盘容量范围(阶段计费),20RadioLevelLinkAge单选框-层级联动(专业版可用)", "example" => "1", "child" => []], ["name" => "notes", "type" => "string", "require" => "", "max" => "-", "desc" => "备注", "example" => "这是一个备注", "child" => []], ["name" => "qty_minimum", "type" => "int", "require" => "", "max" => "-", "desc" => "最小值(type为数量类型的才返回)", "example" => "1", "child" => []], ["name" => "qty_maximum", "type" => "int", "require" => "", "max" => "-", "desc" => "最大值(type为数量类型的才返回)", "example" => "100", "child" => []], ["name" => "is_discount", "type" => "int", "require" => "", "max" => "-", "desc" => "是否支持折扣:1是,0否", "example" => "1", "child" => []], ["name" => "unit", "type" => "string", "require" => "", "max" => "-", "desc" => "配置项自定义单位", "example" => "M,GB", "child" => []], ["name" => "sub", "type" => "array[]", "require" => "", "max" => "-", "desc" => "子项", "example" => "正常数据{
                        \"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
                    }", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "-", "desc" => "配置子项id", "example" => "1", "child" => []], ["name" => "qty_minimum", "type" => "int", "require" => "", "max" => "-", "desc" => "子项最小值(配置项类型为数量类型时,才返回此字段)", "example" => "1", "child" => []], ["name" => "qty_maximum", "type" => "int", "require" => "", "max" => "-", "desc" => "子项最大值(配置项类型为数量类型时,才返回此字段)", "example" => "1", "child" => []], ["name" => "name", "type" => "string", "require" => "", "max" => "-", "desc" => "子项名称:子项|后的名称", "example" => "1核", "child" => []], ["name" => "pricing", "type" => "string", "require" => "", "max" => "-", "desc" => "子项价格", "example" => "0.00", "child" => []], ["name" => "country_code", "type" => "string", "require" => "", "max" => "-", "desc" => "国家代码(仅配置项类型为12LocationDropdown数据中心时才有返回字段)", "example" => "CN", "child" => []], ["name" => "os_type", "type" => "string", "require" => "", "max" => "-", "desc" => "操作系统类型(仅配置项类型为5OperationSystem操作系统时才有返回字段)", "example" => "CentOS", "child" => []], ["name" => "os_url", "type" => "string", "require" => "", "max" => "-", "desc" => "操作系统图标地址(仅配置项类型为5OperationSystem操作系统时才有返回字段)", "example" => "/upload/common/system/2.svg", "child" => []]]]]], ["name" => "custom_fields", "type" => "array[]", "require" => "是", "max" => "-", "desc" => "商品自定义字段", "example" => "{
                \"id\": 86,
                \"fieldname\": \"面板管理密码\",
                \"description\": \"1\",
                \"fieldtype\": \"password\",
                \"fieldoptions\": \"\",
                \"regexpr\": \"1\",
                \"required\": 0
            }", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "-", "desc" => "自定义字段ID", "example" => "86", "child" => []], ["name" => "fieldname", "type" => "string", "require" => "", "max" => "-", "desc" => "自定义字段名称", "example" => "面板管理密码", "child" => []], ["name" => "description", "type" => "string", "require" => "", "max" => "-", "desc" => "自定义字段描述", "example" => "这是测试描述", "child" => []], ["name" => "fieldtype", "type" => "string", "require" => "", "max" => "-", "desc" => "自定义字段类型:password密码框,text文本,link链接,textarea文本域,dropdown下拉,tickbox选择框", "example" => "password", "child" => []], ["name" => "fieldoptions", "type" => "string", "require" => "", "max" => "-", "desc" => "选项,用英文半角逗号分隔", "example" => "1;2;3;4;5", "child" => []], ["name" => "regexpr", "type" => "string", "require" => "", "max" => "-", "desc" => "正则表达式验证字符串", "example" => "\\d+", "child" => []], ["name" => "required", "type" => "int", "require" => "", "max" => "-", "desc" => "是否必填:1是,0否", "example" => "1", "child" => []]]]]]]]]]]], "productsTotal" => ["title" => "计算总价", "desc" => "计算总价", "url" => "v1/products/total", "method" => "POST", "auth" => "智简魔方", "version" => "v1", "param" => [["name" => "product_id", "type" => "int", "require" => "require", "max" => "11", "desc" => "商品ID", "example" => "1", "child" => []], ["name" => "billingcycle", "type" => "string", "require" => "require", "max" => "", "desc" => "购买周期", "example" => "monthly", "child" => []], ["name" => "qty", "type" => "int", "require" => "require", "max" => "", "desc" => "购买数量", "example" => "1", "child" => []], ["name" => "configoption", "type" => "json", "require" => "require", "max" => "", "desc" => "商品配置项数组:键为配置项ID,值为配置子项ID(注意:当配置项类型为数量时,传数量;当配置项类型为单选框,且不勾选时,不传此configoption值)", "example" => "{\"15297\":85257,\"15303\":1}", "child" => []]], "return" => [["name" => "total", "type" => "price", "require" => "", "max" => "", "desc" => "总价", "example" => "100.00", "child" => []], ["name" => "sale_total", "type" => "price", "require" => "", "max" => "", "desc" => "折扣价", "example" => "80.00", "child" => []]]], "addProducts" => ["title" => "添加商品至购物车", "desc" => "添加商品至购物车", "url" => "v1/cart/products", "method" => "POST", "auth" => "智简魔方", "version" => "v1", "param" => [["name" => "product_id", "type" => "int", "require" => "require", "max" => "11", "desc" => "商品ID", "example" => "1", "child" => []], ["name" => "billingcycle", "type" => "string", "require" => "require", "max" => "", "desc" => "购买周期", "example" => "monthly", "child" => []], ["name" => "qty", "type" => "int", "require" => "require", "max" => "", "desc" => "购买数量", "example" => "1", "child" => []], ["name" => "host", "type" => "string", "require" => "require", "max" => "", "desc" => "主机名", "example" => "ser422497445528", "child" => []], ["name" => "password", "type" => "string", "require" => "require", "max" => "", "desc" => "密码", "example" => "daLSEOK4wUIR", "child" => []], ["name" => "configoption", "type" => "json", "require" => "require", "max" => "", "desc" => "商品配置项数组:键为配置项ID,值为配置子项ID(注意:当配置项类型为数量时,传数量;当配置项类型为单选框,且不勾选时,不传此configoption值)", "example" => "{\"15297\":85257,\"15303\":1}", "child" => []], ["name" => "customfield", "type" => "json", "require" => "", "max" => "", "desc" => "有自定义字段时,传此值;键为自定义字段ID,值为客户填写", "example" => "{\"89\":无,\"90\":\"test\"}", "child" => []]]], "cartPage" => ["title" => "获取购物车信息", "desc" => "获取购物车信息", "url" => "v1/cart", "method" => "GET", "auth" => "智简魔方", "version" => "v1", "param" => [["name" => "position", "type" => "array[]", "require" => "", "max" => "", "desc" => "购物车商品位置信息:0开始的自然数,如0,1,2", "example" => "position[]:0  position[]:1", "child" => []]], "return" => [["name" => "currency", "type" => "array[]", "require" => "", "max" => "-", "desc" => "货币信息", "example" => "", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "-", "desc" => "货币ID", "example" => "1", "child" => []], ["name" => "code", "type" => "string", "require" => "", "max" => "-", "desc" => "货币代码", "example" => "CNY", "child" => []], ["name" => "prefix", "type" => "string", "require" => "", "max" => "-", "desc" => "货币前缀", "example" => "￥", "child" => []], ["name" => "suffix", "type" => "string", "require" => "", "max" => "-", "desc" => "货币后缀", "example" => "元", "child" => []]]], ["name" => "total_price", "type" => "price", "require" => "", "max" => "-", "desc" => "总价", "example" => "1002.00", "child" => []], ["name" => "saleproducts", "type" => "price", "require" => "", "max" => "-", "desc" => "折扣后价格(仅拥有折扣返回)", "example" => "1002.00", "child" => []], ["name" => "default_gateway", "type" => "string", "require" => "", "max" => "-", "desc" => "默认支付方式", "example" => "WxPay", "child" => []], ["name" => "gateway_list", "type" => "array[]", "require" => "", "max" => "-", "desc" => "支持的支付方式", "example" => "{
                \"name\": \"WxPay\",
                \"title\": \"微信支付\",
                \"url\": \"upload/pay/WxPay.png\",
                \"author_url\": \"data:image/png;base64,iVBORw0KGgoA……\"
                }", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "-", "desc" => "支付方式ID", "example" => "1", "child" => []], ["name" => "name", "type" => "string", "require" => "", "max" => "-", "desc" => "支付方式标识", "example" => "WxPay", "child" => []], ["name" => "title", "type" => "string", "require" => "", "max" => "-", "desc" => "支付方式名称", "example" => "微信支付", "child" => []], ["name" => "url", "type" => "string", "require" => "", "max" => "-", "desc" => "支付方式图标:资源地址(已舍弃)", "example" => "upload/pay/WxPay.png", "child" => []], ["name" => "author_url", "type" => "base64", "require" => "", "max" => "-", "desc" => "支付方式图标:base64数据", "example" => "data:image/png;base64,iVBORw0KGgoA……", "child" => []]]], ["name" => "cart_products", "type" => "array[]", "require" => "", "max" => "-", "desc" => "购物车商品数据", "example" => "{
                \"productid\": \"379\",
                \"productsname\": \"升降级8001\",
                \"api_type\": \"normal\",
                \"groupn\": {
                    \"id\": 1,
                    \"groupname\": \"云服务器\",
                    \"fa_icon\": \"el-icon-menu\",
                    \"order\": 0,
                    \"hostid\": 0
                },
                \"pay_ontrial_cycle\": \"10\",
                \"pay_ontrial_cycle_type\": \"day\",
                \"product_type\": \"dcimcloud\",
                \"host_show\": \"0\",
                \"password_show\": \"0\",
                \"is_truename\": 0,
                \"host\": \"ser422497445528\",
                \"password\": \"daLSEOK4wUIR\",
                \"allow_qty\": 0,
                \"os_name\": \"\",
                \"billingcycle\": \"monthly\",
                \"qty\": 1,
                \"billingcycle_desc\": \"月\",
                \"product_base_sale\": \"1000.00\",
                \"product_base_sale_setupfee\": 0,
                \"product_pricing\": \"1002.00\",
                \"product_sale\": \"600.000\",
                \"pricing\": \"601.00\",
                \"setup_pricing\": \"0.00\",
                \"product_sale_setupfee\": 0,
                \"type\": {
                    \"type\": 1,
                    \"bates\": 6
                },
                \"_sale_price\": \"601.20\",
                \"saleproducts\": \"400.80\"
            }", "child" => [["name" => "productid", "type" => "int", "require" => "", "max" => "-", "desc" => "商品ID", "example" => "379", "child" => []], ["name" => "productsname", "type" => "string", "require" => "", "max" => "-", "desc" => "商品名称", "example" => "升降级8001", "child" => []], ["name" => "pay_ontrial_cycle", "type" => "int", "require" => "", "max" => "-", "desc" => "商品试用周期", "example" => "10", "child" => []], ["name" => "pay_ontrial_cycle_type", "type" => "string", "require" => "", "max" => "-", "desc" => "商品试用类型:day天,hour小时", "example" => "10", "child" => []], ["name" => "host", "type" => "string", "require" => "", "max" => "-", "desc" => "主机", "example" => "ser422497445528", "child" => []], ["name" => "password", "type" => "string", "require" => "", "max" => "-", "desc" => "密码", "example" => "daLSEOK4wUIR", "child" => []], ["name" => "allow_qty", "type" => "int", "require" => "", "max" => "-", "desc" => "是否允许购买多个", "example" => "1", "child" => []], ["name" => "billingcycle", "type" => "string", "require" => "", "max" => "-", "desc" => "周期", "example" => "monthly", "child" => []], ["name" => "qty", "type" => "int", "require" => "", "max" => "-", "desc" => "购买数量", "example" => "1", "child" => []], ["name" => "product_pricing", "type" => "price", "require" => "", "max" => "-", "desc" => "单个商品价格", "example" => "1002.00", "child" => []], ["name" => "setup_pricing", "type" => "price", "require" => "", "max" => "-", "desc" => "初装费", "example" => "1002.00", "child" => []], ["name" => "saleproducts", "type" => "price", "require" => "", "max" => "-", "desc" => "折扣", "example" => "400.80", "child" => []], ["name" => "type", "type" => "array[]", "require" => "", "max" => "-", "desc" => "折扣类型:1百分比,2固定金额(当有折扣才返回)", "example" => "{
                    \"type\": 1,
                    \"bates\": 6
                }", "child" => [["name" => "type", "type" => "int", "require" => "", "max" => "-", "desc" => "折扣类型:1百分比,2固定金额", "example" => "1", "child" => []], ["name" => "bates", "type" => "float", "require" => "", "max" => "-", "desc" => "折扣", "example" => "6", "child" => []]]]]], ["name" => "promo", "type" => "array[]", "require" => "", "max" => "-", "desc" => "优惠码,应用优惠码成功后有此字段", "example" => "{
            \"promo\": \"1YMLbk64\",
            \"promo_desc\": \"百分比 6折终身\",
            \"promo_desc_str\": \"1YMLbk64 折扣: 6折 终身\",
            \"promo_price\": \"652.48\",
            \"promo_price_str\": \"-￥652.48元\"
        }", "child" => [["name" => "promo", "type" => "string", "require" => "", "max" => "-", "desc" => "优惠码", "example" => "1YMLbk64", "child" => []], ["name" => "promo_desc", "type" => "string", "require" => "", "max" => "-", "desc" => "优惠码描述", "example" => "百分比 6折终身", "child" => []], ["name" => "promo_price", "type" => "string", "require" => "", "max" => "-", "desc" => "优惠码优惠价格", "example" => "652.48", "child" => []]]], ["name" => "client", "type" => "array[]", "require" => "", "max" => "-", "desc" => "客户信息(登录后返回此字段)", "example" => "{
            \"credit\": \"6001.10\",
            \"credit_limit\": \"2000.00\",
            \"is_open_credit_limit\": 1,
        }", "child" => [["name" => "username", "type" => "string", "require" => "", "max" => "-", "desc" => "姓名", "example" => "test", "child" => []], ["name" => "email", "type" => "string", "require" => "", "max" => "-", "desc" => "邮箱", "example" => "test@qq.com", "child" => []], ["name" => "address1", "type" => "string", "require" => "", "max" => "-", "desc" => "地址", "example" => "重庆市", "child" => []], ["name" => "phonenumber", "type" => "string", "require" => "", "max" => "-", "desc" => "手机号码", "example" => "12345678910", "child" => []], ["name" => "credit", "type" => "price", "require" => "", "max" => "-", "desc" => "余额", "example" => "1000.00", "child" => []], ["name" => "credit_limit_balance", "type" => "price", "require" => "", "max" => "-", "desc" => "信用额(客户剩余信用额)", "example" => "2000.00", "child" => []], ["name" => "is_open_credit_limit", "type" => "int", "require" => "", "max" => "-", "desc" => "是否开启信用额:1是,0否", "example" => "1", "child" => []]]]]], "cartRemove" => ["title" => "从购物车删除商品", "desc" => "从购物车删除商品", "url" => "v1/cart/products/:position", "method" => "DELETE", "auth" => "智简魔方", "version" => "v1", "param" => [["name" => "position", "type" => "int", "require" => "", "max" => "11", "desc" => "购物车商品位置信息,0开始的自然数", "example" => "1", "child" => []]]], "cartClear" => ["title" => "清空购物车", "desc" => "清空购物车", "url" => "v1/cart/clear", "method" => "DELETE", "auth" => "智简魔方", "version" => "v1", "param" => [], "return" => []], "cartAddPromo" => ["title" => "应用优惠码至购物车", "desc" => "应用优惠码至购物车", "url" => "v1/cart/promo", "method" => "POST", "auth" => "智简魔方", "version" => "v1", "param" => [["name" => "promo", "type" => "string", "require" => "", "max" => "", "desc" => "优惠码", "example" => "1YMLbk64", "child" => []]]], "cartRemovePromo" => ["title" => "购物车移除优惠码", "desc" => "购物车移除优惠码", "url" => "v1/cart/promo", "method" => "DELETE", "auth" => "智简魔方", "version" => "v1"], "cartCheckout" => ["title" => "购物车结算", "desc" => "购物车结算", "url" => "v1/cart/checkout", "method" => "POST", "auth" => "智简魔方", "version" => "v1", "param" => [["name" => "payment", "type" => "string", "require" => "require", "max" => "", "desc" => "支付方式", "example" => "1", "child" => []], ["name" => "position", "type" => "array[]", "require" => "require", "max" => "", "desc" => "购物车商品位置信息:0开始的自然数,如0,1,2", "example" => "pos[]:0  pos[]:1", "child" => []]], "return" => [["name" => "invoiceid", "type" => "int", "require" => "", "max" => "11", "desc" => "账单ID:状态码为200的时候返回;状态码为1001时,表示购买成功,并且不需要支付", "example" => "1", "child" => []]]]]];