Home - v_160831 登录  
最后修改者: root  2016-09-13 16:56:21 

未读消息条数统计

编号  :  1

POST - /index.php?act=member_message&op=message_new
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录后的key
count_history int Y 消息类型-此参数做为历史消息-统计未读条数 1-统计历史消息 0-统计全部未读消息条数
返回值
{
  "code": 200,
  "datas": {
    "message_new": "0"
  }
}
最后修改者: root  2016-09-13 16:20:15 

广告启动页

编号  :  123

POST - index.php?act=index&op=init_advimg
请求参数
参数名 参数类型 必传 缺省值 描述
city_id int Y 城市id
返回值
{
  "code": 200,
  "datas": {
    "id": "62",
    "sort": "1",
    "adv_url": "localhost/data/upload/shop/initadv/385/05270971101710616.jpg",
    "bind_type": "store",
    "bind_value": "11"
  }
}
备注
增加操作类型和值
$bind_type = array(
                        'goods'     => '商品编号',
                        'special'   => '专题编号',
                        'store'     => '店铺编号',
                        'promotion' => '活动',                    
                    );
最后修改者: root  2016-09-13 13:34:36 

经验值规则

编号  :  0

GET - index.php?act=index&op=exppoints_rule&debug=true
请求参数
参数名 参数类型 必传 缺省值 描述
返回值
{
  "code": 200,
  "datas": {
    "exp_login": "5",   会员每天第一次登录获得['exp_login']经验值;
    "exp_comments": "20", 进行一次订单商品评价将获得['exp_comments']经验值;
    "exp_orderrate": "5",有效购物金额[exp_orderrate]元=1
    "exp_ordermax": "300"  单个订单最多获得['exp_ordermax']经验值;
"member_grade": [ //会员等级列表
      {
        "level": 0, //等级level
        "level_name": "白银会员",//等级名称
        "level_name2": "白银会员", //等级名称
        "exppoints": 0 //所需经验
      },
      {
        "level": 1,
        "level_name": "黄金会员",
        "level_name2": "黄金会员",
        "exppoints": 2000
      },
      {
        "level": 2,
        "level_name": "铂金会员",
        "level_name2": "铂金会员",
        "exppoints": 3000
      },
      {
        "level": 3,
        "level_name": "钻石会员",
        "level_name2": "钻石会员",
        "exppoints": 30000
      }
    ]
  }
}
最后修改者: root  2016-08-23 18:17:41 

删除站内信

编号  :  9999

POST - /index.php?act=member_message&op=message_del
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录后的key
message_type int N 要删除的类型
message_id string N , 分割的message_id字符串
返回值
{
  "code": 200,
  "datas": "1"
}
最后修改者: root  2016-09-14 14:35:29 

订单详情页接口

编号  :  6

POST - http://b2.meiling.com/mobile/index.php?act=member_order&op=show_order&debug=true
订单详情页接口
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 用户token
order_id int Y 订单id
返回值
{
    "code": 200,
    "datas": {
        "order_id": "59651",
        "order_sn": "1096140000003106601",
        "order_state": "20",
        "state_desc": "待发货",
        "store_name": "cindy的店铺",
        "add_time": "1471318996",
        "payment_time": "1471318996",
        "sendtimed": "1471435200",
        "order_amount": "15.00",
        "shipping_fee": "10.00",
        "is_normal": "1",
        "is_arrived": "0",
        "delivery_code": null,
        "dlyo_pickup_code": null,
        "voucher_price": "100",
        "freeforfirst": "0",
        "is_exchange": "0",
        "reciver_info": {
            "re_phone": "15184373398",
            "re_address": "四川	绵阳市	涪城区 美丽生活",
            "re_true_name": "陈金业",
            "container": 1
        },
        "extend_order_goods": [
            {
                "goods_id": "101472",
                "goods_name": "娴娴赠品",
                "goods_price": "0.00",
                "goods_num": "1",
                "goods_pay_price": "0.00",
                "is_normal": "1",
                "actual_weight": null,
                "goods_type": "7",
                "image_url": "http://b2.meiling.com:8080/data/upload/shop/store/goods/14/14_05200933742405858_240.png"
            },
            {
                "goods_id": "101443",
                "goods_name": "娴娴的商品6实物商品预约商品",
                "goods_price": "0.00",
                "goods_num": "8",
                "goods_pay_price": "0.00",
                "is_normal": "1",
                "actual_weight": null,
                "goods_type": "5",
                "image_url": "http://b2.meiling.com/data/upload/shop/store/goods/14/14_05180161283573037_240.png"
            },
            {
                "goods_id": "101440",
                "goods_name": "娴娴的实物商品3+赠品",
                "goods_price": "15.00",
                "goods_num": "8",
                "goods_pay_price": "5.00",
                "is_normal": "1",
                "actual_weight": null,
                "goods_type": "1",
                "image_url": "http://b2.meiling.com/data/upload/shop/store/goods/14/14_05180056392707460_240.png"
            }
        ],
        "goods_total": "120.00",
        "mansong_amount": "15.00",
        "order_send_voucher_desc": "满送优惠券 × 1",
        "goods_count": 3
        "nonormal_num":0         //非标品种类数
    }
}
备注
新增nonormal_num
最后修改者: root  2016-08-15 13:19:25 

成长明细

编号  :  13

POST - index.php?act=member_index&op=exppointlog
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y token
返回值
{
  "code": 200,
  "exppoints_log": [
    {
      "exp_id": "12417",
      "exp_memberid": "6370",
      "exp_membername": "songliang",
      "exp_points": "5",
      "exp_addtime": "2016-07-27 15:46:43",
      "exp_desc": "会员登录",
      "exp_stage": "会员登录"
    },
    {
      "exp_id": "12411",
      "exp_memberid": "6370",
      "exp_membername": "songliang",
      "exp_points": "20",
      "exp_addtime": "2016-07-26 14:07:24",
      "exp_desc": "评论商品",
      "exp_stage": "商品评论"
    },
    {
      "exp_id": "12409",
      "exp_memberid": "6370",
      "exp_membername": "songliang",
      "exp_points": "1",
      "exp_addtime": "2016-07-26 13:55:17",
      "exp_desc": "订单1096010000003079801购物消费",
      "exp_stage": "订单消费"
    }
  ]
}
最后修改者: root  2016-08-15 13:19:53 

会员资料修改

编号  :  12

POST - index.php?act=member_index&op=edit
请求参数
参数名 参数类型 必传 缺省值 描述
column string Y 要修改的列 member_sex / member_birthday / member_name
value suibian Y 修改的值
key string Y token
返回值
{
  "code": 200,
  "msg": "修改成功"
}

{
  "code": 201,
  "msg": "修改失败"
}
备注
member_sex : 1-男,2-女,3-保密
member_birthday:采用1980-01-01形式
最后修改者: root  2016-08-15 11:46:22 

优惠套装加入购物车

编号  :  cui-5

POST - index.php?act=member_cart&op=cart_add_bunding
goods_id为商品详情商品id
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录令牌
city_id int Y 城市id
quantity int Y 套装数量
goods_id int Y 商品id
bl_id int Y 套装id
返回值
成功:
{
    "code": 200,
    "msg": "加入购物车成功"
}
失败:
{
    "code": 201,
    "msg": "失败提示"
}
最后修改者: root  2016-08-22 09:19:46 

我的足迹

编号  :  12

POST - index.php?act=member_goodsbrowse&op=list
清空足迹:index.php?act=member_goodsbrowse&op=del
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 用户登录token
curpage int N 当前页数
返回值
{
  "code": 200,
  "datas": [
    {
      "goods_id": "101545",
      "goods_name": "cs三级分类,合肥",
      "goods_promotion_price": "12.00",
      "new_user_price": "12.00",
      "is_new_user_pri": "0",
      "goods_promotion_type": "0",
      "goods_image": "http://b2.meiling.com/data/upload/shop/store/goods/1/1_05241512813907207_240.jpg",
      "store_id": "1",
      "browsetime": "1470993579",
      "browsetime_day": "今天",
      "browsetime_text": "今天17:19"
    },
    {
      "goods_id": "101546",
      "goods_name": "ERP标品(小强)",
      "goods_promotion_price": "0.01",
      "new_user_price": "0.01",
      "is_new_user_pri": "0",
      "goods_promotion_type": "0",
      "goods_image": "http://b2.meiling.com/data/upload/shop/store/goods/1/1_05243324367444865_240.png",
      "store_id": "1",
      "browsetime": "1470993577",
      "browsetime_day": "今天",
      "browsetime_text": "今天17:19"
    }
]
}
最后修改者: root  2016-08-11 16:44:28 

用户中心-我的商城-获取推荐商品列表

编号  :  99

GET - index.php?act=index&op=get_booth_goods_list
请求参数
参数名 参数类型 必传 缺省值 描述
city_id string Y 城市id
返回值
{
  "code": 200,
  "goods_list": [
    {
      "goods_id": "101505",
      "goods_commonid": "103116",
      "goods_name": "香蕉-hp",
      "goods_jingle": "",
      "store_id": "1",
      "store_name": "购食汇",
      "goods_price": "5.00",
      "goods_promotion_price": "5.00",
      "new_user_price": "5.00",
      "is_new_user_pri": "0",
      "goods_promotion_type": "0",
      "goods_marketprice": "5.00",
      "goods_storage": "766",
      "goods_image": "http://local.meiling.com/data/upload/shop/common/05202556770289692_240.jpg",
      "goods_freight": "8.00",
      "goods_salenum": "234",
      "color_id": "0",
      "evaluation_count": "6"
    },
    {
      "goods_id": "101431",
      "goods_commonid": "102645",
      "goods_name": "虚拟兑换测试ios电影票",
      "goods_jingle": "",
      "store_id": "1",
      "store_name": "购食汇",
      "goods_price": "20.00",
      "goods_promotion_price": "20.00",
      "new_user_price": "20.00",
      "is_new_user_pri": "0",
      "goods_promotion_type": "0",
      "goods_marketprice": "30.00",
      "goods_storage": "9999997",
      "goods_image": "http://local.meiling.com/data/upload/shop/common/05202556770289692_240.jpg",
      "goods_freight": "0.00",
      "goods_salenum": "14",
      "color_id": "0",
      "evaluation_count": "0"
    },
    {
      "goods_id": "101421",
      "goods_commonid": "102638",
      "goods_name": "百皮机冰箱",
      "goods_jingle": "抽奖百皮机冰箱",
      "store_id": "1",
      "store_name": "购食汇",
      "goods_price": "2000.00",
      "goods_promotion_price": "2000.00",
      "new_user_price": "2000.00",
      "is_new_user_pri": "0",
      "goods_promotion_type": "0",
      "goods_marketprice": "2000.00",
      "goods_storage": "9999998",
      "goods_image": "http://local.meiling.com/data/upload/shop/common/05202556770289692_240.jpg",
      "goods_freight": "0.00",
      "goods_salenum": "1",
      "color_id": "0",
      "evaluation_count": "0"
    },
    {
      "goods_id": "101378",
      "goods_commonid": "102602",
      "goods_name": "万达3Dmax电影兑换",
      "goods_jingle": "",
      "store_id": "1",
      "store_name": "购食汇",
      "goods_price": "30.00",
      "goods_promotion_price": "30.00",
      "new_user_price": "30.00",
      "is_new_user_pri": "0",
      "goods_promotion_type": "0",
      "goods_marketprice": "100.00",
      "goods_storage": "5",
      "goods_image": "http://local.meiling.com/data/upload/shop/common/05202556770289692_240.jpg",
      "goods_freight": "0.00",
      "goods_salenum": "2",
      "color_id": "0",
      "evaluation_count": "0"
    }
  ]
}
最后修改者: root  2016-08-11 15:25:02 

充值记录列表

编号  :  66

POST - index.php?act=member_online_rcb&op=record_list&debug=true
充值记录列表
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 用户token
page int Y 10 每页显示条数
curpage int Y 当前页码
返回值
{
    "code": 200,
    "hasmore": false,
    "page_total": 1,
    "record_list": [
        {
            "record_title": 1469980800,
            "record_data": [
                {
                    "member_id": "6774",
                    "add_time": "1470895967",
                    "available_amount": "100.00",
                    "description": "平台充值卡充值,充值卡号:2ED440B663",
                    "total_balance": "1667.50"
                },
                {
                    "member_id": "6774",
                    "add_time": "1470381473",
                    "available_amount": "0.10",
                    "description": "充值,充值单号: 220523725106796774",
                    "total_balance": "1567.50"
                },
                {
                    "member_id": "6774",
                    "add_time": "1470380885",
                    "available_amount": "0.10",
                    "description": "充值,充值单号: 410523707652835774",
                    "total_balance": "1567.40"
                },
                {
                    "member_id": "6774",
                    "add_time": "1470380685",
                    "available_amount": "20.00",
                    "description": "充值,充值单号: 200523720095587774",
                    "total_balance": "1567.30"
                },
                {
                    "member_id": "6774",
                    "add_time": "1470377495",
                    "available_amount": "20.00",
                    "description": "充值,充值单号: 770523720146351774",
                    "total_balance": "1547.30"
                },
                {
                    "member_id": "6774",
                    "add_time": "1470374641",
                    "available_amount": "0.10",
                    "description": "充值,充值单号: 720523649093938774",
                    "total_balance": "1527.30"
                },
                {
                    "member_id": "6774",
                    "add_time": "1470374134",
                    "available_amount": "800.00",
                    "description": "充值,充值单号: 480523649389202774",
                    "total_balance": "1527.20"
                }
            ]
        },
        {
            "record_title": 1464710400,
            "record_data": [
                {
                    "member_id": "6774",
                    "add_time": "1467167091",
                    "available_amount": "0.01",
                    "description": "充值,充值单号: 870520511040510774",
                    "total_balance": "982.01"
                }
            ]
        }
    ]
}
备注
充值记录列表
最后修改者: root  2016-08-10 14:13:25 

店铺商品列表数据

编号  :  cui_4

POST - index.php?act=goods&op=goods_list
根据不同参数显示 全部商品 新品 热销
请求参数
参数名 参数类型 必传 缺省值 描述
store_id int Y 店铺ID
store_type int N 1 :热销 2:新品
返回值
{
    "code": 200,
    "hasmore": false,
    "page_total": 10,
    "datas": {
        "goods_list": [
            {
                "goods_id": "101260",
                "goods_name": "优惠码虚拟商品",
                "goods_price": "13.00",
                "goods_marketprice": "40.00",
                "goods_image": "1_05073090788490995.jpg",
                "goods_salenum": "98",
                "evaluation_good_star": "5",
                "evaluation_count": "0",
                "is_appoint": "0",
                "is_virtual": "1",
                "is_presell": "0",
                "is_fcode": "0",
                "have_gift": "0",
                "group_flag": false,
                "xianshi_flag": false,
                "goods_image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_360.jpg"
            },
            {
                "goods_id": "101152",
                "goods_name": "erp一毛钱标品",
                "goods_price": "0.10",
                "goods_marketprice": "1.00",
                "goods_image": "1_05030690231215019.jpg",
                "goods_salenum": "98",
                "evaluation_good_star": "5",
                "evaluation_count": "4",
                "is_appoint": "0",
                "is_virtual": "0",
                "is_presell": "0",
                "is_fcode": "0",
                "have_gift": "0",
                "group_flag": false,
                "xianshi_flag": false,
                "goods_image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_360.jpg"
            },
            {
                "goods_id": "100769",
                "goods_name": "山东红灯樱桃,2斤/份,只要30元!!美菱生活儿童节爆款!!",
                "goods_price": "30.00",
                "goods_marketprice": "40.00",
                "goods_image": "1_04859614683859383.jpg",
                "goods_salenum": "96",
                "evaluation_good_star": "5",
                "evaluation_count": "16",
                "is_appoint": "0",
                "is_virtual": "0",
                "is_presell": "0",
                "is_fcode": "0",
                "have_gift": "0",
                "group_flag": false,
                "xianshi_flag": false,
                "goods_image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_360.jpg"
            },
            {
                "goods_id": "100760",
                "goods_name": "新西兰奇异果,来自新西兰的味道!美菱生活会员专享,1个/份,6.98元!!",
                "goods_price": "6.98",
                "goods_marketprice": "15.00",
                "goods_image": "1_04855171869317128.jpg",
                "goods_salenum": "95",
                "evaluation_good_star": "5",
                "evaluation_count": "8",
                "is_appoint": "0",
                "is_virtual": "0",
                "is_presell": "0",
                "is_fcode": "0",
                "have_gift": "0",
                "group_flag": false,
                "xianshi_flag": false,
                "goods_image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_360.jpg"
            },
            {
                "goods_id": "100912",
                "goods_name": "绵阳商品11",
                "goods_price": "3.33",
                "goods_marketprice": "30.00",
                "goods_image": "1_04977274639904399.jpg",
                "goods_salenum": "90",
                "evaluation_good_star": "5",
                "evaluation_count": "1",
                "is_appoint": "0",
                "is_virtual": "0",
                "is_presell": "0",
                "is_fcode": "0",
                "have_gift": "0",
                "group_flag": false,
                "xianshi_flag": false,
                "goods_image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_360.jpg"
            }
        ]
    }
}
备注
获取全部商品时 store_type 不传值
最后修改者: root  2016-12-07 14:33:24 

店铺首页数据接口

编号  :  cui_3

POST - index.php?act=store_index&op=index
请求参数
参数名 参数类型 必传 缺省值 描述
store_id int Y 店铺ID
city_id int Y 城市id
返回值
{
    "code": 200,
    "store_name":"够实惠"                                                                                     //店铺名称
    "store_label": "http://127.0.0.1/goushihui/data/upload/shop/store/05241369933552700.jpg",            //店铺logo
    "store_banner": "http://127.0.0.1/goushihui/data/upload/shop/store/05241369933552700.jpg",        //店铺横幅
    "store_adv": [                                                                                                  //广告图数据
        { 
            "store_slide": "http://127.0.0.1/goushihui/data/upload/shop/store/slide/05241417448278993.png",   //广告图地址
            "special_id": "84"                                                                                 //关联专题ID
        },
        {
            "store_slide": "http://127.0.0.1/goushihui/data/upload/shop/store/slide/05241424967382247.jpg",
            "special_id": "87"
        }
    ],
    "goods_count": 8,       //商品总数
    "new_count": 8,          //新品总数
    "hot_count": 7,            //热销总数
    "voucher_count": "7",  //优惠券总数
    "promotion_goodsList": [             //促销商品
        {
            "goods_id": "101438",
            "goods_name": "娴娴的商品1实物商品",
            "goods_salenum": "13",
            "goods_addtime": "1464659114",
            "goods_click": "172",
            "goods_image": "14_05180024720040323.png",
            "group_flag": false,
            "xianshi_flag": true,
            "goods_image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_360.jpg"
        },
        {
            "goods_id": "101440",
            "goods_name": "娴娴的实物商品3+赠品",
            "goods_salenum": "13",
            "goods_addtime": "1464661670",
            "goods_click": "6",
            "goods_image": "14_05180056392707460.png",
            "group_flag": false,
            "xianshi_flag": true,
            "goods_image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_360.jpg"
        }
    ],
    "popular_goodsList": [            //人气商品
        {
            "goods_id": "101438",
            "goods_name": "娴娴的商品1实物商品",
            "goods_salenum": "13",
            "goods_addtime": "1464659114",
            "goods_click": "172",
            "goods_image": "14_05180024720040323.png",
            "group_flag": false,
            "xianshi_flag": true,
            "goods_image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_360.jpg"
        },
        {
            "goods_id": "101466",
            "goods_name": "娴娴虚拟商品",
            "goods_salenum": "9",
            "goods_addtime": "1466662113",
            "goods_click": "67",
            "goods_image": "14_05190583312639923.jpg",
            "group_flag": false,
            "xianshi_flag": false,
            "goods_image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_360.jpg"
        },
        {
            "goods_id": "101472",
            "goods_name": "娴娴赠品",
            "goods_salenum": "29",
            "goods_addtime": "1466749389",
            "goods_click": "25",
            "goods_image": "14_05200933742405858.png",
            "group_flag": false,
            "xianshi_flag": false,
            "goods_image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_360.jpg"
        },
        {
            "goods_id": "101443",
            "goods_name": "娴娴的商品6实物商品预约商品",
            "goods_salenum": "20",
            "goods_addtime": "1464672133",
            "goods_click": "17",
            "goods_image": "14_05180161283573037.png",
            "group_flag": false,
            "xianshi_flag": false,
            "goods_image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_360.jpg"
        },
        {
            "goods_id": "101470",
            "goods_name": "娴娴1111",
            "goods_salenum": "8",
            "goods_addtime": "1466740646",
            "goods_click": "7",
            "goods_image": "14_05200846329523717.png",
            "group_flag": false,
            "xianshi_flag": false,
            "goods_image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_360.jpg",
            "icon_image_url": {
                "goods_id": "101470",
                "icon_image": "05234502126270872.png",
                "icon_image_url": null
            }
        },
        {
            "goods_id": "101440",
            "goods_name": "娴娴的实物商品3+赠品",
            "goods_salenum": "13",
            "goods_addtime": "1464661670",
            "goods_click": "6",
            "goods_image": "14_05180056392707460.png",
            "group_flag": false,
            "xianshi_flag": true,
            "goods_image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_360.jpg"
        },
        {
            "goods_id": "101450",
            "goods_name": "娴娴的虚拟商品",
            "goods_salenum": "0",
            "goods_addtime": "1465714363",
            "goods_click": "1",
            "goods_image": "14_05190583601423459.png",
            "group_flag": false,
            "xianshi_flag": false,
            "goods_image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_360.jpg"
        },
        {
            "goods_id": "101468",
            "goods_name": "QYF",
            "goods_salenum": "7",
            "goods_addtime": "1466738048",
            "goods_click": "0",
            "goods_image": "14_05200820380072554.png",
            "group_flag": false,
            "xianshi_flag": false,
            "goods_image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_360.jpg"
        }
    ]
}
最后修改者: root  2016-09-13 11:07:33 

我的商城-用户中心

编号  :  111

POST - index.php?act=member_center&op=index
level-等级信息 order_state_count-订单状态统计 详情查看返回值 增加性别1-男 2-女 3-保密 生日
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登陆后的key
返回值
{
  "code": 200,
  "datas": {
    "member_info": {
      "user_name": "吴学海888",
      "avator": "http://local.meiling.com/data/upload/shop/common/default_user_portrait.gif",
      "member_sex": "1",
      "member_birthday": "2016-08-08",
      "point": "100001551",
      "predepoit": "0.00",
      "available_rc_balance": "99968413.76",
      "member_mobile": "18668313509",
      "member_exppoints": "541",
      "card_number": "123456245",
      "voucher_unused": 3,
      "order_state_count": {
        "un_pay": "0",  //未支付
        "un_recive": "1", //待收货
        "un_evaluation": "1" //待评论
      },
      "level": {
        "level": 0, //当前会员等级
        "level_name": "白银会员", //当前等级名称
        "upgrade": 1, //下一等级
        "upgrade_name": "黄金会员", //下一等级名称
        "upgrade_exppoints": 1000, //下一等级所需分数
        "less_exppoints": 459, //当前差多少分数达到下一级
        "upgrade_desc": "还差459经验值即可升级成为黄金会员等级会员" //升级所需条件文字描述
      },
      "balance": "100066292.73"
    },
    "cartSize": "200"
    "message_new":"29"            //未读消息数
  }
}
最后修改者: root  2016-08-08 13:27:09 

app订单评价

编号  :  1

POST - index.php?act=member_evaluate&op=add
虚拟订单评价使用: b2.meiling/mobile/index.php?act=member_evaluate&op=add_vr
请求参数
参数名 参数类型 必传 缺省值 描述
order_id int Y 订单编号
goods_+goods_id+_score_ int Y 商品评分(中间goods_id为评价商品编号)
goods_+goods_id+_comment_ string Y 评价内容(中间goods_id为评价商品编号)
again_evaluate int N 追加评价使用字段,当值为1时为追加评价
evaluate_image_+goods_id string Y 晒单图片(goods_id为评价商品编号)
返回值
{
  "code": 200,
  "datas": "评价成功"
}
最后修改者: root  2016-08-10 13:59:49 

清除用户搜索历史

编号  :  cui_1

GET - index.php?act=goods&op=del_search_keyword
清除用户搜索历史
请求参数
参数名 参数类型 必传 缺省值 描述
imei string Y 移动设备唯一标识
返回值
{
    "code": 200,
    "msg": "清除成功!"
}
{
    "code": 201,
    "msg": "清除失败!"
}
最后修改者: root  2016-08-04 17:11:31 

app添加充值接口

编号  :  5

POST - index.php?act=member_online_rcb&debug=true&op=rcb_add
app在线充值列表接口
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 用户登录token
id int Y 充值金额项id
other_amount decimal Y 其他金额
返回值
成功:
{
    "code": 200,
    "pay_sn": "210523643959156774",
    "pay_amount": "7"
}
错误:
{
    "code": 201,
    "msg": "提交失败"
}
备注
参数说明:
id,other_amount传一个
最后修改者: root  2016-09-21 10:22:50 

移动端搜索页面扩展

编号  :  cui_2

POST - index.php?act=goods&op=goods_search
根据手机唯一标识获取移动设备搜索记录 热搜 猜你喜欢 数据
请求参数
参数名 参数类型 必传 缺省值 描述
imei string Y 移动设备唯一标识
city_id int Y 城市id
store_id int N 店铺id 只有店铺搜索时传值
返回值
{
    "code": 200,
    "search_history": [     //搜索历史
        "哈哈哈"
    ],
    "hot_search": [     //热搜
        "红提",
        "红灯樱桃",
        "火龙果",
        "山东红富士",
        "测试"
    ],
    "guess_like": [     //猜你喜欢  最多20条
        {
            "goods_id": "100857",
            "goods_name": "测试支付商品1",
            "store_id": "1",
            "goods_price": "0.01",
            "goods_image": "1_04889866038192842.jpg",
            "is_presell": "0",
            "is_virtual": "0",
            "goods_image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_360.jpg",
            "stock": "863"
        },
        {
            "goods_id": "101021",
            "goods_name": "退款测试",
            "store_id": "1",
            "goods_price": "10.00",
            "goods_image": "1_05001322795316194.jpg",
            "is_presell": "0",
            "is_virtual": "1",
            "goods_image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_360.jpg",
            "stock": "976"
        },
    ]
}
最后修改者: root  2016-08-04 13:31:57 

删除整点购提醒

编号  :  3.4

POST - index.php?act=zd_groupbuy&op=delAlarmClock
登录时删除整点购提醒
请求参数
参数名 参数类型 必传 缺省值 描述
promotion_id int Y 整点购ID
goods_id int Y 商品ID
返回值
{
    "code": 200,
    "datas": "取消成功!"
}
最后修改者: root  2016-08-04 13:16:04 

整点购提醒获取

编号  :  3.3

POST - index.php?act=zd_groupbuy&op=getAlarmClock
整点购提醒获取
请求参数
参数名 参数类型 必传 缺省值 描述
返回值
{
    "code": 200,
    "datas": [
        {
            "promotion_id": "9",//整点购id 删除时需要用到
            "goods_id": "100912", 
            "goods_name": "绵阳商品11",
            "goods_price": "3.33",
            "promotion_price": "1.00", //优惠价格
            "start_time": "1470290400",//整点时间
            "goods_image": "http://127.0.0.1/goushihui/data/upload/shop/common/05202556770289692_240.jpg"
        },
        {
            "promotion_id": "9",
            "goods_id": "101079",
            "goods_name": "棒棒娃牛肉粒(烧烤味)   90g/袋",
            "goods_price": "19.80",
            "promotion_price": "1.00",
            "start_time": "1470290400",
            "goods_image": "http://127.0.0.1/goushihui/data/upload/shop/common/05202556770289692_240.jpg"
        }
    ]
}
备注
登录时才能获取
最后修改者: root  2016-08-04 11:03:55 

整点购添加提醒

编号  :  3.2

POST - index.php?act=zd_groupbuy&op=addAlarmClock
整点购未开始时,添加提醒
请求参数
参数名 参数类型 必传 缺省值 描述
promotion_id int Y 整点购Id
goods_id int Y 商品Id
start_time int Y 开始时间
返回值
{
    "code": 200,
    "datas": "添加成功!"
}
备注
登录后才能添加
最后修改者: root  2016-08-08 16:37:28 

app在线充值列表接口

编号  :  4

POST - index.php?act=member_online_rcb&debug=true&op=rcb_list
app在线充值列表接口
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 用户token
返回值
{
    "code": 200,
    "is_other_amount_open": "1"
    "online_rcb_btm_msg": "底部提示消息设置",
    "online_rcb_top_msg": "顶部活动滚动消息设置",
    "rcb_btm_title": "礼品卡底部标",
    "rcb_show_image": "b2.meiling.com/data/upload/mobile/rcb/05235569407463431.jpg",
    "rcb_list": [
        {
            "id": "1",
            "prime_cost": "300.00",
            "discount_price": "100.00"
        },
        {
            "id": "2",
            "prime_cost": "500.00",
            "discount_price": "200.00"
        },
        {
            "id": "3",
            "prime_cost": "800.00",
            "discount_price": "300.00"
        },
        {
            "id": "4",
            "prime_cost": "900.00",
            "discount_price": "300.00"
        }
    ]
}
备注
app在线充值页面使用
is_other_amount_open: 自定义金额(无折扣)充值是否开放 1 是 0 否
online_rcb_top_msg:在线充值页面顶部消息
online_rcb_btm_msg:在线充值页面底部消息
rcb_list:充值金额列表
               prime_cost:原价
               discount_price:折扣价
rcb_btm_title:礼品卡充值底部标题
rcb_show_image:礼品卡充值图片
最后修改者: root  2016-08-04 15:00:01 

整点购获取接口

编号  :  3.1

POST - index.php?act=zd_groupbuy&op=index
获取整点购数据
请求参数
参数名 参数类型 必传 缺省值 描述
city_id int Y 城市id
special_id int Y 入口专题号
curr_time int N 整点时间
返回值
{
    "code": 200,
    "datas": {
        "adv_list": [    //广告栏 如果为空 为[]
              {
                    "image": "http://127.0.0.1/goushihui/data/upload/mobile/special/s75/s75_05235541746531235.jpg",//图片地址
                    "type": "",//跳转类型
                    "data": ""//跳转数据
                },
                {
                    "image": "http://127.0.0.1/goushihui/data/upload/mobile/special/s75/s75_05235544483356288.jpg",
                    "type": "url",
                    "data": "www.baidu.com"
                }
        ],
        "goods_info": [
            {
                "promotion_id": "1",
                "goods_id": "101382",
                "goods_name": "测试chen_图片",
                "goods_price": "1.00",
                "promotion_stock": "99",
                "promotion_price": "1.00",
                "store_id": "1",
                "start_time": "1470211200",
                "end_time": "1470297599",
                "state": "1",
                "goods_image": "http://127.0.0.1/goushihui/data/upload/shop/common/05202556770289692_240.jpg",
                "city_id": "390",
                "each_limit": "0"
            },
            {
                "promotion_id": "1",
                "goods_id": "101490",
                "goods_name": "pstest",
                "goods_price": "1.00",
                "promotion_stock": "8",
                "promotion_price": "1.00",
                "store_id": "1",
                "start_time": "1470211200",
                "end_time": "1470297599",
                "state": "1",
                "goods_image": "http://127.0.0.1/goushihui/data/upload/shop/common/05202556770289692_240.jpg",
                "city_id": "390",
                "each_limit": "0"
            },
            {
                "promotion_id": "1",
                "goods_id": "101527",
                "goods_name": "非标品001",
                "goods_price": "10.00",
                "promotion_stock": "95",
                "promotion_price": "1.00",
                "store_id": "1",
                "start_time": "1470211200",
                "end_time": "1470297599",
                "state": "1",
                "goods_image": "http://127.0.0.1/goushihui/data/upload/shop/common/05202556770289692_240.jpg",
                "city_id": "390",
                "each_limit": "0"
            },
            {
                "promotion_id": "1",
                "goods_id": "101528",
                "goods_name": "非标品002",
                "goods_price": "10.00",
                "promotion_stock": "96",
                "promotion_price": "1.00",
                "store_id": "1",
                "start_time": "1470211200",
                "end_time": "1470297599",
                "state": "1",
                "goods_image": "http://127.0.0.1/goushihui/data/upload/shop/common/05202556770289692_240.jpg",
                "city_id": "390",
                "each_limit": "0"
            }
        ],
        "time_arr": [  //整点购头部的时间区间
            {
                "start_time": "1470211200",  //时间区间具体时间戳
                "is_on": 1,// 1:抢购中 0:未开始
                "time_zone": "16:00" //整点购头部区间显示
            },
            {
                "start_time": "1470225600",
                "is_on": 0,
                "time_zone": "20:00"
            },
            {
                "start_time": "1470229200",
                "is_on": 0,
                "time_zone": "21:00"
            },
            {
                "start_time": "1470236400",
                "is_on": 0,
                "time_zone": "23:00"
            },
            {
                "start_time": "1470272400",
                "is_on": 0,
                "time_zone": "09:00"
            },
            {
                "start_time": "1470276000",
                "is_on": 0,
                "time_zone": "10:00"
            }
        ],
        "curr_time": "1470211200"// 当前所在时间区间
    }
}
最后修改者: root  2017-03-02 14:13:50 

专题接口

编号  :  2

POST - index.php?act=index&debug=true&op=specialV1
专题接口
请求参数
参数名 参数类型 必传 缺省值 描述
city_id int Y 城市id
special_id int Y 专题编号
app_version string Y 版本
返回值
{
  "code": 200,
  "hasmore": "false",
  "page_total": 1,
  "page_now": 1,
  "datas": [
    {
      "adv_list": {
        "item": [
          {
            "image": "http://127.0.0.1/goushihui/data/upload/mobile/special/s74/s74_05231029287517713.jpg",
            "type": "url",
            "data": "https://www.baidu.com/",
            "image_height": 0,
            "image_width": 0,
            "is_groupbuy": 0,
            "start_time": null,
            "end_time": null
          }
        ]
      }
    },
    {
      "home1": {
        "title": "1231",
        "image": "http://localhost/goushihui/data/upload/shop/common/default_goods_image_240.gif",
        "type": "group_spell",
        "data": {
          "id": "11",
          "goods_id": "103781"
        },
        "image_width": 0,
        "image_height": 0
      }
    },
    {
      "goods": {
        "title": "",
        "item": [
          {
            "goods_id": "101479",
            "goods_name": "苹果-hp",
            "goods_price": "10.00",
            "goods_marketprice": "10.00",
            "goods_promotion_price": "10.00",
            "goods_image": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_240.jpg",
            "goods_image_height": 0,
            "goods_image_width": 0,
            "is_groupbuy": 0,
            "is_presell": "0",
            "is_virtual": "0",
            "start_time": null,
            "end_time": null
          },
          {
            "goods_id": "100872",
            "goods_name": "小苹果 规格测试",
            "goods_price": "40.00",
            "goods_marketprice": "45.00",
            "goods_promotion_price": "40.00",
            "goods_image": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_240.jpg",
            "goods_image_height": 0,
            "goods_image_width": 0,
            "is_groupbuy": 0,
            "is_presell": "0",
            "is_virtual": "0",
            "start_time": null,
            "end_time": null
          }
        ]
      }
    },
    {
      "goods2": {
        "title": "",
        "item": [
          {
            "goods_id": "100235",
            "goods_name": "皇冠正品 安徽宿州特产 刘老二符离集烧鸡 500g 4袋包邮 送零食",
            "goods_price": "20.90",
            "goods_marketprice": "24.00",
            "goods_promotion_price": "20.90",
            "goods_image": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_240.jpg",
            "goods_image_height": 0,
            "goods_image_width": 0,
            "is_groupbuy": 0,
            "is_presell": "0",
            "is_virtual": "0",
            "start_time": null,
            "end_time": null
          },
          {
            "goods_id": "100175",
            "goods_name": "【山夫子】姬松茸 云南高原姬松茸特级干品 菌菇正品 250g/份推荐",
            "goods_price": "93.00",
            "goods_marketprice": "111.00",
            "goods_promotion_price": "93.00",
            "goods_image": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_240.jpg",
            "goods_image_height": 0,
            "goods_image_width": 0,
            "is_groupbuy": 0,
            "is_presell": "0",
            "is_virtual": "0",
            "start_time": null,
            "end_time": null
          },
          {
            "goods_id": "41",
            "goods_name": "正品 2014春装新款 女 绣花针织衫 开衫外套浮桑初 黑色 均码",
            "goods_price": "189.00",
            "goods_marketprice": "702.00",
            "goods_promotion_price": "189.00",
            "goods_image": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_240.jpg",
            "goods_image_height": 0,
            "goods_image_width": 0,
            "is_groupbuy": 0,
            "is_presell": "0",
            "is_virtual": "0",
            "start_time": null,
            "end_time": null
          }
        ]
      }
    }
  ]
}
备注
专题接口增加goods2模板

2017-03-02 A模板(home1)增加类型group_spell, data值增加goods_id
最后修改者: root  2016-08-01 14:45:22 

消息列表

编号  :  02

POST - index.php?act=member_message&op=message_list
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登陆后的key
message_type int Y 消息类型id
返回值
参考原消息列表解析
最后修改者: root  2016-09-18 09:34:00 

消息类型列表

编号  :  01

POST - index.php?act=member_message&op=message_type_list
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登陆后的key
返回值
{
  "code": 200,
  "datas": [
    {
      "id": "6",
      "name": "付款成功",
      "icon": "http://local.meiling.com:80/data/upload/shop/common/05270782193833463.png",
      "create_time": "1473734219",
      "unread_count": "2",
      "last_message": {
        "message_body": "你的账户于 2016-09-18 09:20:47 账户资金有变化,描述:下单,使用余额,订单号:1006010000003173901,可用金额变化 :-15.00元,冻结金额变化:0.00元。",
        "message_time": "1474161647"
      }
    },
    {
      "id": 0,
      "name": "历史消息",
      "icon": "http://local.meiling.com:80/data/resource/images/history.png",
      "create_time": 1474162284,
      "unread_count": 0,
      "last_message": {
        "message_body": "你的账户于 2016-09-13 14:41:50 账户资金有变化,描述:下单,使用余额,订单号:1006010000003165701,可用金额变化 :-7.01元,冻结金额变化:0.00元。",
        "message_time": "1473748910"
      }
    }
  ]
}
备注
id-消息类型id
name-消息类型名称
icon-消息类型icon[image-url]
create_time-添加时间
unread_count-该类型消息未读数量
last_message-最后一条消息
最后修改者: root  2017-03-02 14:09:00 

移动端首页接口

编号  :  1.1

GET - index.php?act=index&op=index&city_id=390&app_version=4.1
请求参数
参数名 参数类型 必传 缺省值 描述
app_version string N
page_size int N 20
page_now int N 1
返回值
{
  "code": 200,
  "hasmore": "false",
  "page_total": 1,
  "page_now": 1,
  "datas": [
    {
      "quick_access": {
        "title": "快捷入口",
        "item": [
          {
            "quick_title": "全部分类",
            "type_id": "5",
            "type_name": "全部分类",
            "type_image": "http://127.0.0.1/goushihui/data/upload/access/05207010622782037_small.png"
          },
          {
            "quick_title": "兑换专区",
            "type_id": "3",
            "type_name": "兑换专区",
            "type_image": "http://127.0.0.1/goushihui/data/upload/access/05206955057054913_small.png"
          },
          {
            "quick_title": "优惠券",
            "type_id": "8",
            "type_name": "优惠券",
            "type_image": "http://127.0.0.1/goushihui/data/upload/access/05206956752215503_small.png",
            "quick_data": "10"
          },
          {
            "quick_title": "我的订单",
            "type_id": "6",
            "type_name": "我的订单",
            "type_image": "http://127.0.0.1/goushihui/data/upload/access/05206956284181469_small.png"
          },
          {
            "quick_title": "专题",
            "type_id": "1",
            "type_name": "专题活动",
            "type_image": "http://127.0.0.1/goushihui/data/upload/access/05215655373891192_small.png",
            "quick_data": "64"
          },
          {
            "quick_title": "物流售后",
            "type_id": "4",
            "type_name": "物流售后",
            "type_image": "http://127.0.0.1/goushihui/data/upload/access/05215656489425769_small.png",
            "quick_data": "http://127.0.0.1/goushihui/data/upload/access/05215657497346810.png"
          },
          {
            "quick_title": "活动专题",
            "type_id": "9",
            "type_name": "活动专题",
            "type_image": "http://127.0.0.1/goushihui/data/upload/access/05215660070526948_small.png",
            "quick_data": "53"
          },
          {
            "quick_title": "充值中心",
            "type_id": "2",
            "type_name": "充值中心",
            "type_image": "http://127.0.0.1/goushihui/data/upload/access/05215661330320461_small.png"
          }
        ]
      }
    },
    {
      "adv_list": {
        "item": [
          {
            "image": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_240.jpg",
            "type": "keyword",
            "data": "草莓",
            "image_height": 0,
            "image_width": 0,
            "is_groupbuy": 0,
            "start_time": null,
            "end_time": null
          }
        ]
      }
    },
    {
      "home1": {
        "title": "1231",
        "image": "http://localhost/goushihui/data/upload/shop/common/default_goods_image_240.gif",
        "type": "group_spell",
        "data": {
          "id": "11",
          "goods_id": "103781"
        },
        "image_width": 0,
        "image_height": 0
      }
    },
    {
      "goods2": {
        "title": "",
        "item": [
          {
            "goods_id": "100844",
            "goods_name": "预售 先定鲜尝 6月12日发货 越南进口白糖罂 荔枝 2斤",
            "goods_price": "27.90",
            "goods_marketprice": "39.00",
            "goods_promotion_price": "27.90",
            "goods_image": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_240.jpg",
            "goods_image_height": 0,
            "goods_image_width": 0,
            "is_groupbuy": 0,
            "is_presell": "0",
            "is_virtual": "0",
            "start_time": null,
            "end_time": null
          },
          {
            "goods_id": "100759",
            "goods_name": "越南红心火龙果,约2-3斤/份,美菱生活会员专享,只要29.9元!!",
            "goods_price": "29.90",
            "goods_marketprice": "38.00",
            "goods_promotion_price": "29.90",
            "goods_image": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_240.jpg",
            "goods_image_height": 0,
            "goods_image_width": 0,
            "is_groupbuy": 0,
            "is_presell": "0",
            "is_virtual": "0",
            "start_time": null,
            "end_time": null
          },
          {
            "goods_id": "100489",
            "goods_name": "越南水仙芒(黄芒)",
            "goods_price": "12.00",
            "goods_marketprice": "18.00",
            "goods_promotion_price": "12.00",
            "goods_image": "http://127.0.0.1/goushihui/data/upload/shop/common/05042716569504530_240.jpg",
            "goods_image_height": 0,
            "goods_image_width": 0,
            "is_groupbuy": 0,
            "is_presell": "0",
            "is_virtual": "0",
            "start_time": null,
            "end_time": null
          }
        ]
      }
    }
  ]
}
备注
增加商品模块2,goods2
2017-03-02 A模板(home1)增加类型group_spell, data值增加goods_id