首页 - 应用中心
最后修改: 2020-07-10 15:45:23 

salepropremark:添加配置的接口

编号  :  addConfig

POST - http://域名/task?route=salepropremark-api-addConfig
salepropremark插件添加配置的接口
请求参数
参数名 参数类型 必传 缺省值 描述
token varchar Y 接口访问token
config_res varchar Y 配置的json格式
返回值
成功{"status":"1","data":"","msg":"success"}
失败{"status":"0","data":"","msg":"fail"}
备注
域名 是插件地址:比如 http://24073_salepropremark.cn01-apps.ymcart.com/

config_res: json接口
{
    "base_name":"config name",
    "goods_ids":[1,2,3,4],
    "param":[
        {
            "attr_name":"color",
            "attr_value":[
                {
                    "param_attribute":"red",
                    "param_remark":"fsadfsadfsadfsadfsadsadfaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
                },
                {
                    "param_attribute":"black",
                    "param_remark":"fbbbbbbbbbbbbbbbbbbaaaaaaaaaaaaaaaaaaaaaaaaa"
                }
            ]
        },
        {
            "attr_name":"size",
            "attr_value":[
                {
                    "param_attribute":"L",
                    "param_remark":"LLLLLLLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
                },
                {
                    "param_attribute":"M",
                    "param_remark":"MMMMMMMMMMMMMMMM"
                }
            ]
        }
    ]
}

base_name:配置名
goods_ids:商品id
goods_codeno:商品编号
param:属性配置
param.attr_name :属性名称
param.attr_value :属性值数组
param.attr_value.param_attribute :属性值名称
param.attr_value.param_remark :属性值备注

备注:goods_ids 和  goods_codeno 任选一个传值,优先goods_ids