Home - v_160915 登录  
最后修改者: root  2016-08-29 14:16:52 

虚拟订单详情(新增自提点)

编号  :  5

POST - mobile/index.php?act=member_vr_order&op=show_order
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录令牌
order_id int Y 订单id
返回值
{
    "code": 200,
    "datas": {
        "order_id": "43",
        "order_sn": "650525792617250230",
        "order_state": "20",
        "state_desc": "已付款",
        "store_name": "购食汇",
        "buyer_phone": "18093814246",
        "add_time": "1472448617",
        "goods_id": "101606",
        "goods_name": "chen_测试虚拟自提勿动",
        "goods_price": "2.00",
        "goods_num": "1",
        "order_amount": "2.00",
        "image_url": "http://127.0.0.1/v_160915/data/upload/shop/common/05042716569504530_240.jpg",
        "extend_vr_order_code": [
            {
                "vr_code": "5292 3014 2700 2828",
                "vr_usetime": null,
                "vr_indate": "1787932799",
                "vr_state": "0",
                "vr_code_desc": "未使用,有效期至 2026-08-28"
            }
        ],
        "dlyp_address_name": "名称待定"     //自提点名称
    }
}
最后修改者: root  2016-08-29 11:22:03 

节庆活动兑换(实物)

编号  :  4

POST - v_160915/mobile/index.php?act=member_buy&op=buy_step1
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录令牌
award_id int Y 新增 活动id
city_id int Y 城市id
cart_id string Y 商品id 101595|1 格式
award_info_id int Y 兑奖用户列表id
返回值
{
    "code": 200,
    "datas": {
        "award_id": "2",     新增  活动id
        "award_info_id": "2",     兑奖用户列表id
    }
}
最后修改者: root  2016-08-29 11:20:41 

节庆兑换验证

编号  :  3

POST - mobile/index.php?act=member_award_activity&op=award_exchange_ver
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录令牌
award_id int Y 活动id
id_card_number string N 身份证
employee_number string N 员工号
member_mobile int N 手机号
返回值
商品兑换:
{
    "code": 200,
    "goods_id": "101595",   //兑换商品id
    "award_id": "2",             //活动id
    "award_info_id": "86091",             //兑奖用户列表id
    "is_virtual": "1"              //1 标示虚拟 0标示实物
}
只有优惠券兑换成功
{
    "code": 200,
    "msg": "兑换成功!",
}
兑换失败:
{
    "code": 201,
    "msg": "失败提示",
}
最后修改者: root  2016-08-29 11:23:53 

节庆活动兑换(虚拟)

编号  :  2

POST - /v_160915/mobile/index.php?act=member_vr_buy&op=buy_step1
兑换完成跳转订单确认页面
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录令牌
award_id int Y 活动id
city_id int Y 兑换城市id
cart_id int Y 商品id
award_info_id int Y 兑奖用户列表id
返回值
{
    "code": 200,
    "datas": {
        "award_id": "2",         //活动idaward_info_id
        "award_info_id": "86091",         //兑奖用户列表id
        "delivery_list": [         //自提点列表
            {
                "dlyp_id": "7",    //自提点id
                "dlyp_address_name": "测试自提站"
            },
            {
                "dlyp_id": "10",
                "dlyp_address_name": "111"
            },
            {
                "dlyp_id": "13",
                "dlyp_address_name": "</textarea>'&q"
            }
        ],
        "store_info": {
            "store_name": "购食汇"
        },
        "member_info": {
            "ifpaypwd": 1,
            "available_predeposit": "0.02",
            "available_rc_balance": "3994.99",
            "userbalance": "3995.01",
            "credit": "0.00"
        },
        "goods_info": {
            "goods_id": "101595",
            "goods_price": 0,
            "store_name": "购食汇",
            "quantity": 1,
            "goods_name": "915活动兑换商品",
            "goods_freight": "0.00",
            "goods_total": "0.00",
            "is_new_user_pri": "0",
            "goods_image_url": "http://b2.meiling.com:80/v_160915/data/upload/shop/common/05243307613500606_240.jpg"
        },
        "code": ""
    }
}

兑换失败:
{
    "code": 201,
    "msg": "参数错误,可能的原因是用户信息不匹配!"          
}
最后修改者: root  2016-08-31 10:50:06 

获取节庆活动配置接口

编号  :  1

POST - http://b2.meiling.com/v_160915/mobile/index.php?act=member_award_activity&op=award_info&debug=true
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 用户登录token
id int Y 节庆活动id
返回值
{
  "code": 200,
  "id": "2",
  "award_name": "915测试虚拟非自提",
  "image_url": "http://b2.meiling.com:80/v_160915/data/upload/mobile/award/05257150289461503.jpg",
  "setting_info": [
    {
      "key": "id_card_number",
      "value": "身份证号"
    },
    {
      "key": "employee_number",
      "value": "员工编号"
    }
  ]
}