Home - 购食汇-v_5.6.0 登录  
最后修改者: root  2018-06-13 10:38:44 

红包分享成功上传时间

编号  :  13

POST - mobile/index.php?act=member_packet&op=up_share_time
请求参数
参数名 参数类型 必传 缺省值 描述
packet_sn string Y 红包32位码
返回值
{
  "code": 200,
  "datas": "操作成功"
}
最后修改者: root  2018-06-04 10:43:53 

橙汁机小程序 首页

编号  :  012

POST - mobile/index.php?act=orange_mini&op=index
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录令牌
city_id int Y 城市ID
返回值
{
  "code": 200,
  "member_id": "112669",
  "member_name": "18508283196",
  "balance": "993.00",
  "voucher_unused": 5,    .//未使用优惠券数量
  "datas": [  //广告位数据
    {
      "image_width": 220,
      "image_height": 145,
      "image": "http://127.0.0.1/goushihui/data/upload/mobile/orange_mini/05806568856126233.jpg",
      "item_type": "special",
      "share_target_url": "",
      "data": {
        "id": "321",
        "type_name": "10-14整点购"
      }
    },
    {
      "image_width": 220,
      "image_height": 201,
      "image": "http://127.0.0.1/goushihui/data/upload/mobile/orange_mini/05806569188308963.jpg",
      "item_type": "special",
      "share_target_url": "",
      "data": {
        "id": "2221322",
        "type_name": null
      }
    }
  ]
}
最后修改者: root  2018-05-30 09:14:39 

商品详情 商品置优评价弹框

编号  :  011

POST - mobile/index.php?act=goods&op=bomb_box_evaluate
请求参数
参数名 参数类型 必传 缺省值 描述
goods_id int Y 商品id
返回值
{
  "code": 200,
  "datas": [
    {
      "member_id": "10595",
      "member_avatar": "http://127.0.0.1/goushihui/data/upload/shop/common/default_user_portrait.gif",
      "member_name": "13512356197",
      "geval_content": "glow拖",
      "geval_image": [
        "http://127.0.0.1/goushihui/data/upload/shop/common/default_goods_image_240.gif",
        "http://127.0.0.1/goushihui/data/upload/shop/common/default_goods_image_240.gif"
      ],
      "geval_goodsid": "104515"
    },
    {
      "member_id": "124473",
      "member_avatar": "http://127.0.0.1/goushihui/data/upload/shop/common/default_user_portrait.gif",
      "member_name": "13522223333",
      "geval_content": "金拱门",
      "geval_image": [],
      "geval_goodsid": "104515"
    },
    {
      "member_id": "10591",
      "member_avatar": "http://127.0.0.1/goushihui/data/upload/shop/common/default_user_portrait.gif",
      "member_name": "13512356193",
      "geval_content": "进攻now",
      "geval_image": [],
      "geval_goodsid": "104515"
    }
  ]
}
备注
"member_id": 评价人id,
      "member_avatar": 评价人头像
      "member_name": 评价人名称,
      "geval_content": "评价内容
      "geval_image": 评价晒图,
      "geval_goodsid": 商品id
最后修改者: root  2018-05-29 14:12:45 

搜索自提柜、自提点(可查询距离)

编号  :  10

POST - mobile/index.php?act=member_address&op=searchAddress
请求参数
参数名 参数类型 必传 缺省值 描述
city_id int Y 城市id(传城市id没距离)
lat string N 纬度
lng string N 经度
返回值
{
    "code": 200,
    "datas": {
        "address_list": [
            {
                "id": "38",
                "name": "长虹",
                "province_id": "23",
                "city_id": "385",
                "area_id": "4214",
                "province_name": "四川",
                "city_name": "成都市",
                "area_name": "高新区",
                "area_info": "四川成都市",
                "type": "point",
                "address": "11111",
                "distance": "8,929.59KM"
            },
            {
                "id": "37",
                "name": "对接社区运营自提点5555",
                "province_id": "23",
                "city_id": "385",
                "area_id": "4214",
                "province_name": "四川",
                "city_name": "成都市",
                "area_name": "高新区",
                "area_info": "四川成都市",
                "type": "point",
                "address": "中和镇香榭国际对接自提点",
                "distance": "10,577.56KM"
            },
            {
                "id": "26",
                "name": "小强自提站3-3",
                "province_id": "23",
                "city_id": "385",
                "area_id": "4214",
                "province_name": "四川",
                "city_name": "成都市",
                "area_name": "高新区",
                "area_info": "四川成都市",
                "type": "point",
                "address": "长虹科技大厦20170303",
                "distance": "12,067.09KM"
            }
        ]
    }
}
备注
传入经度纬度才有距离,有城市id不显示距离,其他参数照旧
最后修改者: root  2018-05-28 14:22:49 

首页接口(添加快捷入口特殊页面设置)

编号  :  009

POST - /mobile/index.php?act=index&op=index
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录令牌
city_id int Y 城市id
返回值
{
  "code": 200,
  "datas": [
    {
      "adv_list": {
        "item": [
          {
            "image": "http://dev.test.ifoodtube.com:8093/data/upload/mobile/special/s0/s0_05791968187723336.gif",
            "type": "award",
            "data": {
              "id": "19",
              "type_name": "0515",
              "is_login": "1"
            },
            "image_width": 500,
            "image_height": 238,
            "is_login": "1"
          },
          {
            "image": "http://dev.test.ifoodtube.com:8093/data/upload/mobile/special/s0/s0_05792005104166394.gif",
            "type": "zd_groupbuy",
            "data": {
              "id": "375"
            },
            "image_width": 480,
            "image_height": 207
          },
          {
            "image": "http://dev.test.ifoodtube.com:8093/data/upload/mobile/special/s0/s0_05664723389743804.jpg",
            "type": "other",
            "data": {
              "id": "2"
            },
            "image_width": 640,
            "image_height": 240
          }
        ],
        "share_target_url": ""
      }
    },
    {
      "quick_access": {
        "title": "快捷入口",
        "item": [
          {
            "quick_title": "mmm客服",
            "type_id": "10",
            "type_name": null,
            "type_image": "http://dev.test.ifoodtube.com:8093/data/upload/access/05646872012418022.png"
          },
          {
            "quick_title": "整点购快捷",
            "type_id": "7",
            "type_name": null,
            "type_image": "http://dev.test.ifoodtube.com:8093/data/upload/access/05650975927404633.png",
            "quick_data": "300082"
          },
          {
            "quick_title": "兑换专区",
            "type_id": "3",
            "type_name": "兑换专区",
            "type_image": "http://dev.test.ifoodtube.com:8093/data/upload/access/05765971974962641.png"
          }
        ],
        "quick_item": [
          {
            "image_width": 220,
            "image_height": 145,
            "image": "http://dev.test.ifoodtube.com:8093/data/upload/mobile/quick/05808321120507994.jpg",
            "quick_type": "1",
            "item_type": "quanzi",
            "share_target_url": "",
            "data": {
              "id": "32"
            }
          }
        ]
      }
    }
  ]
}
备注
quick_item  快捷入口特殊页面设置数据   quick_type  1,背景图 2,上广告位 3,下广告位
最后修改者: root  2018-06-13 17:38:09 

抢红包余额接口

编号  :  8

POST - mobile/index.php?act=member_packet&op=get_packet
抢红包余额接口
请求参数
参数名 参数类型 必传 缺省值 描述
packet_sn string Y 红包32位码
返回值
{
    "code": 200,
    "datas": {
        "head_img": "http://dev.test.ifoodtube.com:8093/data/upload/mobile/red_packet/packet_pic/05808295563268920.jpg",
        "head_content": "红包分享土豪:购食汇151*8218<br/>10.00元红包 5人瓜分 已抢光",
        "have_get": "我抢到了:¥3.33",
        "balance_content": "已存入账号余额:18508283196",
        "packet_log_list": [
            {
                "member_id": "124730",
                "get_amount": "2.00",
                "create_time": "1527521405",
                "is_share": "1",
                "is_newuser": "1",
                "is_lucky_boy": "0",
                "member_name": "15196638218",
                "member_avatar": null
            },
            {
                "member_id": "124745",
                "get_amount": "2.00",
                "create_time": "1527522094",
                "is_share": "0",
                "is_newuser": "1",
                "is_lucky_boy": "0",
                "member_name": "15308095275",
                "member_avatar": null
            },
            {
                "member_id": "112675",
                "get_amount": "2.00",
                "create_time": "1527522195",
                "is_share": "0",
                "is_newuser": "1",
                "is_lucky_boy": "0",
                "member_name": "15892622726",
                "member_avatar": null
            },
            {
                "member_id": "112664",
                "get_amount": "0.67",
                "create_time": "1527555789",
                "is_share": "0",
                "is_newuser": "0",
                "is_lucky_boy": "0",
                "member_name": "可可可可可",
                "member_avatar": "avatar_112664.jpeg"
            },
            {
                "member_id": "112669",
                "get_amount": "3.33",
                "create_time": "1527555856",
                "is_share": "0",
                "is_newuser": "0",
                "is_lucky_boy": "0",
                "member_name": "18508283196",
                "member_avatar": null
            }
        ],
        "rule": "123"
    }
}
备注
main_img:分享主图
color_no:色号
is_end:是否结束 0:否1:是
left_amount:剩余金额
最后修改者: root  2018-05-28 10:35:29 

订单详情页--悬浮红包新增字段

编号  :  7

POST - mobile/index.php?act=member_order&show_order
请求参数
参数名 参数类型 必传 缺省值 描述
备注
//packet_sn 红包32位码
//packet_desc 红包描述 (今天运气好哦。。。。。。)
最后修改者: root  2018-05-28 10:11:48 

订单列表--红包弹出新增字段

编号  :  6

POST - mobile/index.php?act=member_order&op=order_list
订单列表红包弹出修改
请求参数
参数名 参数类型 必传 缺省值 描述
备注
//packet_sn 红包32位码
//packet_desc 红包描述 (今天运气好哦。。。。。。)
最后修改者: root  2018-05-24 14:31:51 

慢必赔-发送优惠劵

编号  :  0005

GET - mobile/index.php?act=member_order&op=getDelayVoucher
请求参数
参数名 参数类型 必传 缺省值 描述
order_id int Y
member_id int Y
返回值
{
  "code": 200,
  "datas":1
}
最后修改者: root  2018-05-24 14:36:34 

订单列表--慢必赔

编号  :  004

POST - mobile/index.php?act=member_order&op=order_list
1:type 5 可申请 6 申请记录 其余参数不变; 2:订单列表-增加-is_delay(是否慢必赔) 0-否,1-是
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录令牌
type int Y 类型
最后修改者: root  2018-05-21 14:43:09 

实物订单详情

编号  :  003

POST - /mobile/index.php?act=member_order&op=show_order
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录令牌
order_id int Y 订单id
返回值
{
  "code": 200,
  "datas": {
    "order_id": "190336",
    "order_sn": "1098080000001910601",
    "order_state": "40",
    "order_type": "1",
    "state_desc": "交易完成",
    "store_id": "8",
    "buyer_id": "124739",
    "payment_name": "站内余额支付",
    "store_member_id": "112833",
    "store_member_name": "13644444444",
    "call_num": "112833",
    "call_type": "im",
    "is_other_service": "1",
    "other_service_id": "766514",
    "store_name": "mmm",
    "add_time": "1526351739",
    "payment_time": "1526351739",
    "sendtimed": "1526418000",
    "order_amount": "10.00",
    "shipping_fee": 0,
    "is_normal": "1",
    "is_arrived": "0",
    "delivery_code": null,
    "dlyo_pickup_code": null,
    "voucher_price": "12.00",
    "freeforfirst": "1",
    "is_exchange": "0",
    "less_more_repair_desc": null,
    "reciver_info": {
      "re_phone": "18280335990",
      "re_address": "四川 成都市 武侯区 长虹科技大厦A",
      "re_true_name": "czz",
      "deliver_service_name": "自提柜"
    },
    "refund_id": 0,
    "refund": "1",
    "extend_order_goods": [
      {
        "goods_id": "103524",
        "goods_name": "mmm1118实物商品5(套装1)",
        "goods_price": "12.00",
        "goods_num": "1",
        "goods_pay_price": "5.46",
        "is_normal": "1",
        "actual_weight": null,
        "goods_type": "1",
        "share_goods_image": "http://127.0.0.1/goushihui/data/upload/shop/common/default_goods_image_240.gif",
        "is_presell": "0",
        "image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/default_goods_image_240.gif",
        "refund": "0",
        "extend_refund": {
          "refund_id": "2134972",
          "order_id": "190336",
          "order_sn": "1098080000001910601",
          "refund_sn": "978108180515161720",
          "store_id": "8",
          "store_name": "mmm",
          "buyer_id": "124739",
          "buyer_name": "18280335990",
          "goods_id": "103524",
          "order_goods_id": "322315",
          "goods_name": "mmm1118实物商品5(套装1)",
          "goods_num": "1",
          "refund_amount": "5.46",
          "goods_image": "8_05327931914491971.jpg",
          "order_goods_type": "1",
          "refund_type": "2",
          "seller_state": "2",
          "refund_state": "2",
          "return_type": "1",
          "order_lock": "2",
          "goods_state": "1",
          "add_time": "1526372240",
          "seller_time": "1526835672",
          "admin_time": "0",
          "reason_id": "99",
          "reason_info": "不能按时发货",
          "pic_info": "a:1:{s:5:"buyer";a:0:{}}",
          "buyer_message": "啦啦啦",
          "seller_message": "超过5天未处理退款退货申请,按同意处理。",
          "admin_message": null,
          "express_id": "0",
          "invoice_no": null,
          "ship_time": "0",
          "delay_time": "0",
          "receive_time": "0",
          "receive_message": null,
          "commis_rate": "0",
          "refund_rcb_amount": "0.00",
          "refund_pd_amount": "0.00",
          "refund_card_pure_amount": "0.00",
          "refund_card_present_amount": "0.00",
          "is_system": "0"
        }
      },
      {
        "goods_id": "103520",
        "goods_name": "mmm1118实物商品1(抢购)",
        "goods_price": "10.00",
        "goods_num": "1",
        "goods_pay_price": "4.54",
        "is_normal": "1",
        "actual_weight": null,
        "goods_type": "1",
        "share_goods_image": "http://127.0.0.1/goushihui/data/upload/shop/common/default_goods_image_240.gif",
        "is_presell": "0",
        "image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/default_goods_image_240.gif",
        "refund": "1",
        "extend_refund": null
      }
    ],
    "nonormal_num": 0,
    "goods_total": "22.00",
    "mansong_amount": "0.00",
    "order_send_voucher_desc": "",
    "goods_count": 2
  }
}
备注
类似  订单列表
最后修改者: root  2018-05-21 13:30:36 

虚拟订单详情

编号  :  002

POST - mobile/index.php?act=member_vr_order&op=show_order
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录令牌
order_id int Y 订单id
返回值
{
  "code": 200,
  "datas": {
    "order_id": "6982",
    "order_sn": "500580214877703739",
    "order_state": "20",
    "state_desc": "已付款",
    "store_id": "8",
    "store_member_id": "112833",
    "store_member_name": "13644444444",
    "call_num": "112833",
    "call_type": "im",
    "is_other_service": "1",
    "other_service_id": "766514",
    "store_name": "mmm",
    "buyer_phone": "18280335990",
    "add_time": "1526870877",
    "goods_id": "103527",
    "goods_name": "mmm1118虚拟商品1(未参加活动)",
    "goods_price": "35.00",
    "goods_num": "1",
    "order_amount": "35.00",
    "image_url": "http://127.0.0.1/goushihui/data/upload/shop/common/default_goods_image_240.gif",
    "if_refund": false,
    "refund_id": "324",
    "dlyp_address_name": null
  }
}
备注
if_refund   true 能退款  false 不能
refund_id  虚拟兑码退款表 id
最后修改者: root  2018-05-21 11:39:07 

添加评价

编号  :  001

POST - mobile/index.php?act=member_evaluate&op=add
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录令牌
store_servicecredit int Y 服务态度
store_deliverycredit int Y 物流服务
返回值
{
  "code": 200,
  "datas": "评价成功"
}
备注
store_servicecredit   store_deliverycredit  为新加参数  其他参数不变
最后修改者: admin  2018-06-06 10:28:48 

推送消息-设置-token

编号  :  1

POST - index.php?act=index&op=xgToken
终端从信鸽获取token后,需要将token上报上服务器
请求参数
参数名 参数类型 必传 缺省值 描述
xg_token String Y
imei String Y
member_id String N 没登录可以不传
备注
推送消息--自定义参数-说明:
1.参数:target   目标-goods:商品详细   special:专题  zd_groupbuy:整点购  activity:活动
2.参数:data_id  数据编号ID