Home - v_161111 登录  
最后修改者: root  2016-12-05 17:48:27 

支付-获取支付单支付状态

编号  :  01

POST - /index.php?act=member_payment&op=check_pay_status&debug=true
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录后的key
type string Y 支付类型,real_order-实物订单,vr_order-虚拟订单,pd_order-充值订单
pay_sn string Y 支付单号
返回值
{
  "code": 200,
  "datas": {
    "pay_status": 0  // 0-未支付,1-已支付
  }
}
最后修改者: root  2016-12-01 16:50:33 

新设备号新用户快捷登录注册领取新人大礼包

编号  :  1.52

POST - mobile/index.php?act=member_login&op=usersave
传参和快捷登录一致
请求参数
参数名 参数类型 必传 缺省值 描述
code string Y 验证码
mobile int Y 手机号
返回值
{
    "code": 200,
    "username": "92321",
    "key": "07454868167682c8dcc57b6b6424b8bb",
    "pop_gift_image_url": "http://127.0.0.1/goushihui/data/upload/mobile/pop_promotion/05297571440925121.jpg"   //领取成功提示图片
}
备注
// pop_gift_image_url ==  ' ' 领取失败  (没有大礼包  或者没有领取资格 或者优惠券被领光了)
最后修改者: root  2016-11-09 13:05:35 

翼支付-支付参数获取(签名)

编号  :  0

POST - index.php?act=member_payment&op=app_sign
请求参数
参数名 参数类型 必传 缺省值 描述
pay_sn string Y 支付单号
total_fee float Y 支付总价
terminal_type string Y 客户端版本信息
payment_code string Y basepay 支付方式编码
返回值
{
  "code": 200,
  "datas": {
    "create_order_param": "MERCHANTID=02510301010168456&SUBMERCHANTID=&ORDERSEQ=10009&ORDERREQTRANSEQ=201611091020521&RISKCONTROLINFO=%E8%B4%AD%E9%A3%9F%E6%B1%87APP%E4%BA%A4%E6%98%93&ORDERREQTIME=20161109102052&TRANSCODE=01&ORDERAMT=0&ORDERCCY=RMB&SERVICECODE=05&PRODUCTID=04&PRODUCTDESC=%E8%B4%AD%E9%A3%9F%E6%B1%87APP%E4%BA%A4%E6%98%93&LOGINNO=&PROVINCECODE=&CITYCODE=&DIVDETAILS=&ENCODETYPE=1&MAC=86715fd075aaa6d1d0f7a68d2d8f3d46",
    "pay_order_param": "SERVICE=mobile.security.pay&MERCHANTID=02510301010168456&SUBMERCHANTID=&MERCHANTPWD=414652&ORDERSEQ=10009&ORDERTIME=20161109102052&ORDERVALIDITYTIME=&CUSTOMERID=12345678901&ATTACHAMOUNT=0&CURTYPE=RMB&ATTACH=&PRODUCTID=04&PRODUCTDESC=%E8%B4%AD%E9%A3%9F%E6%B1%87APP%E4%BA%A4%E6%98%93&USERIP=&DIVDETAILS=&ACCOUNTID=&BUSITYPE=04&ORDERREQTRANSEQ=201611091020521&SIGNTYPE=MD5&SIGN=50072f6e620e34035fa71519e5570393&SUBJECT=%E8%B0%83%E8%AF%95_10009&SWTICHACC=true"
  }
}
备注
create_order_param 创建订单信息

pay_order_param支付订单信息
最后修改者: root  2016-10-28 10:44:28 

客服聊天日志

编号  :  1.7

POST - b2.meiling.com/mobile/v_161111/index.php?act=member_chat&op=get_chat_log_mobile
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
t int Y //30
t_id int Y 店铺id
page int Y 每页条数
curpage int Y
返回值
{
  "code": 200,
  "hasmore": true,
  "page_total": 38,
  "datas": {
    "list": [
      {
        "m_id": "1416",
        "f_id": "112704",
        "f_name": "孔令强",
        "f_ip": "",
        "t_id": "1",
        "t_name": "mllifemj",
        "t_msg": "sdfdsf",
        "add_time": "2016-10-27 13:46:18",
        "msg_type": "0",
        "time": "1477547178"
      },
      {
        "m_id": "1420",
        "f_id": "112704",
        "f_name": "孔令强",
        "f_ip": "",
        "t_id": "1",
        "t_name": "mllifemj",
        "t_msg": "sdsad",
        "add_time": "2016-10-27 13:47:29",
        "msg_type": "0",
        "time": "1477547249"
      },
      {
        "m_id": "1422",
        "f_id": "112704",
        "f_name": "孔令强",
        "f_ip": "",
        "t_id": "1",
        "t_name": "mllifemj",
        "t_msg": "sdsadsa<br>",
        "add_time": "2016-10-27 13:47:41",
        "msg_type": "0",
        "time": "1477547261"
      },
      {
        "m_id": "1423",
        "f_id": "112704",
        "f_name": "孔令强",
        "f_ip": "",
        "t_id": "1",
        "t_name": "mllifemj",
        "t_msg": "sdsdsd",
        "add_time": "2016-10-27 13:47:45",
        "msg_type": "0",
        "time": "1477547265"
      },
      {
        "m_id": "1424",
        "f_id": "112704",
        "f_name": "孔令强",
        "f_ip": "",
        "t_id": "1",
        "t_name": "mllifemj",
        "t_msg": "asdasd",
        "add_time": "2016-10-27 13:47:49",
        "msg_type": "0",
        "time": "1477547269"
      },
      {
        "m_id": "1428",
        "f_id": "1",
        "f_name": "mllifemj",
        "f_ip": "",
        "t_id": "112704",
        "t_name": "孔令强",
        "t_msg": "是的奋斗史分",
        "add_time": "2016-10-27 13:57:26",
        "msg_type": "0",
        "time": "1477547846"
      },
      {
        "m_id": "1434",
        "f_id": "1",
        "f_name": "mllifemj",
        "f_ip": "",
        "t_id": "112704",
        "t_name": "孔令强",
        "t_msg": "但撒打算",
        "add_time": "2016-10-27 15:41:57",
        "msg_type": "0",
        "time": "1477554117"
      },
      {
        "m_id": "1435",
        "f_id": "1",
        "f_name": "mllifemj",
        "f_ip": "",
        "t_id": "112704",
        "t_name": "孔令强",
        "t_msg": "史蒂夫",
        "add_time": "2016-10-27 15:54:51",
        "msg_type": "0",
        "time": "1477554891"
      },
      {
        "m_id": "1437",
        "f_id": "112704",
        "f_name": "孔令强",
        "f_ip": "",
        "t_id": "1",
        "t_name": "mllifemj",
        "t_msg": "http://www.newgoushi.com/data/upload/chat/2016-10-28/1_112704_1477617544_chat.png",
        "add_time": "2016-10-28 09:19:05",
        "msg_type": "1",
        "time": "1477617545"
      },
      {
        "m_id": "1438",
        "f_id": "112704",
        "f_name": "孔令强",
        "f_ip": "",
        "t_id": "1",
        "t_name": "mllifemj",
        "t_msg": "http://www.newgoushi.com/data/upload/chat/2016-10-28/1_112704_1477620714_chat.png",
        "add_time": "2016-10-28 10:11:54",
        "msg_type": "1",
        "time": "1477620714"
      }
    ]
  }
最后修改者: root  2016-10-26 16:04:58 

获取订单支付过期时间

编号  :  1.6

POST - index.php?act=member_order&op=payment_order_time
订单列表中支付未付款订单 获取订单支付过期时间
请求参数
参数名 参数类型 必传 缺省值 描述
pay_sn int Y 订单编号
pay_amount int Y 支付金额
is_vr_order int Y 是否虚拟订单
返回值
{
    "code": 200,
    "pay_sn": "800530721627588715",
    "pay_amount": "14.60",
    "order_lock_time": 82730  //订单支付过期时间
}
最后修改者: root  2016-10-20 11:02:51 

新设备号新注册用户领取新人大礼包(注册接口)

编号  :  1.5

POST - mobile/index.php?act=member_login&op=usersave
传递参数 同 注册
请求参数
参数名 参数类型 必传 缺省值 描述
imei string Y 设备号
返回值
{
    "code": 200,
    "username": "92321",
    "key": "07454868167682c8dcc57b6b6424b8bb",
    "pop_gift_image_url": "http://127.0.0.1/goushihui/data/upload/mobile/pop_promotion/05297571440925121.jpg"   //领取成功提示图片
}
备注
// pop_gift_image_url ==  ' ' 领取失败  (没有大礼包  或者没有领取资格 或者优惠券被领光了)
最后修改者: root  2016-10-20 10:07:02 

首页弹出促销

编号  :  1.4

POST - mobile/index.php?act=index&op=pop_promotion
请求参数
参数名 参数类型 必传 缺省值 描述
imei string Y 移动设备号
city_id int Y 城市id
key string N 登录令牌号
返回值
{
    "code": 200,
    "pop_promotion_info": {  //促销内容
        "pop_promotion_id": "9",  //促销编号
        "pop_promotion_type": "3",  //类型  1新人促销 2新人大礼包3 普通
        "pop_promotion_name": "555", // 促销名称
        "pop_promotion_content": "keyword",   //绑定内容                               
        "content_date": "11",           //内容绑定数据                                     
        "pop_promotion_image_url": "http://127.0.0.1/goushihui/data/upload/mobile/pop_promotion/05297571440925121.jpg"    // 图片
    }
}
最后修改者: root  2016-11-21 18:05:47 

商品详情

编号  :  1.3

POST - act=goods&op=goods_detail&debug=true
1、PC端商品标题下方1234的卖点文字在APP端展示出来 2、PC端商品详情末尾关联版式展现出来
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y key
goods_id int Y 商品id
city_id int Y 城市id
返回值
{
  "code": 200,
  "datas": {
    "goods_info": {
    "plateid_top_info": "",
    "plateid_bottom_info": "<img src="http://www.ifoodtube.com/data/upload/shop/store/goods/1/1_05205223679794937_1280.jpg" alt="image" />",
"goods_jingle": "【1】北纬27度地带气候种植是公认天然的优质小黄姜产业带 【2】小黄姜切面纯黄色 味辛辣浓 肉细嫩 味香 【3】含有呢啶酸、谷氨酸、天门冬氨酸、甘氨酸等多种氨基酸 【4】有散寒、止呕、开痰、治疗感冒风寒、喘咳、腹泻等诸多药用功效",
"groupbuy_count": "1",购买数量
"groupbuy_stock": 321,抢购库存
"last_three_evaluate": [
        {
          "geval_addtime": "2016-09-25 17:43:50",
          "geval_frommembername": "zm145",
          "geval_scores": "5",
          "geval_isanonymous": "1",
          "geval_content": "不错",
          "geval_explain": null,
          "geval_image": "10684_05212356607289082.jpg,10684_05212356677475030.jpg"
        },
        {
          "geval_addtime": "2016-09-25 11:25:45",
          "geval_frommembername": "13778053983",
          "geval_scores": "5",
          "geval_isanonymous": "1",
          "geval_content": "不错哦",
          "geval_explain": null,
          "geval_image": "10684_05212356607289082.jpg,10684_05212356677475030.jpg"
        }
      ],
备注
新增
goods_jingle 热点
plateid_top_info 顶部关联版式
plateid_bottom_info 底部关联版式
groupbuy_count 购买数量
groupbuy_stock 抢购库存
last_three_evaluate 评价:只显示最近2条5星评价(无5星评价显示最近两天,只有一条评价时,显示一条,无评价时,显示暂无评价),查看全部评价跳转评价列表
最后修改者: root  2016-09-20 14:15:46 

商品详情页优惠券获取

编号  :  1.2

GET - act=member_voucher&op=getVoucherInGoodsDetail
请求参数
参数名 参数类型 必传 缺省值 描述
goods_id int Y 商品id
store_id int Y 店铺id
member_id int N 用户Id
返回值
{
    "code": 200,
    "datas": {
        "0": {
            "voucher_t_id": "60",
            "voucher_t_price": "100",
            "voucher_t_store_id": "0",
            "voucher_t_start_date": "1444354989",
            "voucher_t_end_date": "1633017600",
            "bind_data_type": "0",
            "voucher_t_limit": 101,
            "voucher_t_eachlimit": "1",
            "voucher_t_customimg": "http://127.0.0.1/goushihui/data/upload/shop/common/05243307613500606_240.jpg",
            "voucher_t_sc_name": null,
            "store_name": "平台券",//店铺名
            "bind_data_type_name": "通用券",//券分类
            "limit_num": 1 //已领取 有个字段就是已领取
        },
        "1": {
            "voucher_t_id": "135",
            "voucher_t_price": "4",
            "voucher_t_store_id": "1",
            "voucher_t_start_date": "1453715184",
            "voucher_t_end_date": "1484927999",
            "bind_data_type": "0",
            "voucher_t_limit": 5,
            "voucher_t_eachlimit": "5",
            "voucher_t_customimg": "http://127.0.0.1/goushihui/data/upload/shop/common/05243307613500606_240.jpg",
            "voucher_t_sc_name": null,
            "store_name": "购食汇",
            "bind_data_type_name": "通用券"
        },
        "3": {
            "voucher_t_id": "354",
            "voucher_t_price": "1",
            "voucher_t_store_id": "1",
            "voucher_t_start_date": "1467103800",
            "voucher_t_end_date": "1483199999",
            "bind_data_type": "0",
            "voucher_t_limit": 5,
            "voucher_t_eachlimit": "3",
            "voucher_t_customimg": "http://127.0.0.1/goushihui/data/upload/shop/common/05243307613500606_240.jpg",
            "voucher_t_sc_name": null,
            "store_name": "购食汇",
            "bind_data_type_name": "通用券"
        },
        "4": {
            "voucher_t_id": "395",
            "voucher_t_price": "1",
            "voucher_t_store_id": "0",
            "voucher_t_start_date": "1470627300",
            "voucher_t_end_date": "1628393760",
            "bind_data_type": "0",
            "voucher_t_limit": 10,
            "voucher_t_eachlimit": "3",
            "voucher_t_customimg": "http://127.0.0.1/goushihui/data/upload/shop/common/05243307613500606_240.jpg",
            "voucher_t_sc_name": null,
            "store_name": "平台券",
            "bind_data_type_name": "通用券"
        },
        "5": {
            "voucher_t_id": "410",
            "voucher_t_price": "4",
            "voucher_t_store_id": "1",
            "voucher_t_start_date": "1472178120",
            "voucher_t_end_date": "1482891480",
            "bind_data_type": "0",
            "voucher_t_limit": 10,
            "voucher_t_eachlimit": "2",
            "voucher_t_customimg": "http://127.0.0.1/goushihui/data/upload/shop/common/05243307613500606_240.jpg",
            "voucher_t_sc_name": null,
            "store_name": "购食汇",
            "bind_data_type_name": "通用券"
        },
        "7": {
            "voucher_t_id": "419",
            "voucher_t_price": "4",
            "voucher_t_store_id": "0",
            "voucher_t_start_date": "1472524260",
            "voucher_t_end_date": "1482287460",
            "bind_data_type": "0",
            "voucher_t_limit": 10,
            "voucher_t_eachlimit": "3",
            "voucher_t_customimg": "http://127.0.0.1/goushihui/data/upload/shop/common/05243307613500606_240.jpg",
            "voucher_t_sc_name": null,
            "store_name": "平台券",
            "bind_data_type_name": "通用券"
        },
        "8": {
            "voucher_t_id": "423",
            "voucher_t_price": "9",
            "voucher_t_store_id": "0",
            "voucher_t_start_date": "1472547360",
            "voucher_t_end_date": "1483001580",
            "bind_data_type": "0",
            "voucher_t_limit": 10,
            "voucher_t_eachlimit": "3",
            "voucher_t_customimg": "http://127.0.0.1/goushihui/data/upload/shop/common/05243307613500606_240.jpg",
            "voucher_t_sc_name": null,
            "store_name": "平台券",
            "bind_data_type_name": "通用券"
        },
        "9": {
            "voucher_t_id": "426",
            "voucher_t_price": "1",
            "voucher_t_store_id": "1",
            "voucher_t_start_date": "1472628120",
            "voucher_t_end_date": "1482988920",
            "bind_data_type": "0",
            "voucher_t_limit": 1,
            "voucher_t_eachlimit": "1",
            "voucher_t_customimg": "http://127.0.0.1/goushihui/data/upload/shop/common/05243307613500606_240.jpg",
            "voucher_t_sc_name": null,
            "store_name": "购食汇",
            "bind_data_type_name": "通用券",
            "limit_num": 1
        },
        "10": {
            "voucher_t_id": "430",
            "voucher_t_price": "1",
            "voucher_t_store_id": "0",
            "voucher_t_start_date": "1472635320",
            "voucher_t_end_date": "1477905600",
            "bind_data_type": "0",
            "voucher_t_limit": 10,
            "voucher_t_eachlimit": "2",
            "voucher_t_customimg": "http://127.0.0.1/goushihui/data/upload/shop/common/05243307613500606_240.jpg",
            "voucher_t_sc_name": null,
            "store_name": "平台券",
            "bind_data_type_name": "通用券"
        },
        "11": {
            "voucher_t_id": "431",
            "voucher_t_price": "4",
            "voucher_t_store_id": "0",
            "voucher_t_start_date": "1473648180",
            "voucher_t_end_date": "1475203380",
            "bind_data_type": "0",
            "voucher_t_limit": 5,
            "voucher_t_eachlimit": "2",
            "voucher_t_customimg": "http://127.0.0.1/goushihui/data/upload/shop/common/05243307613500606_240.jpg",
            "voucher_t_sc_name": null,
            "store_name": "平台券",
            "bind_data_type_name": "通用券"
        }
    }
}
最后修改者: root  2016-09-19 14:59:45 

获取店铺优惠券

编号  :  1.1

POST - act=member_voucher&op=getVoucherCanGet
请求参数
参数名 参数类型 必传 缺省值 描述
store_id int Y 店铺ID
返回值
{
    "code": 200,
    "datas": [
        {
            "voucher_t_id": "413",
            "voucher_t_eachlimit": "1",
            "voucher_t_limit": "20.00",
            "voucher_t_price": "10",
            "voucher_t_styleimg": null,
            "voucher_t_customimg": null
        },
        {
            "voucher_t_id": "426",
            "voucher_t_eachlimit": "1",
            "voucher_t_limit": "1.00",
            "voucher_t_price": "1",
            "voucher_t_styleimg": null,
            "voucher_t_customimg": "05259649743952577.jpg",
            "limit_num": 1 //已领取
        },
        {
            "voucher_t_id": "410",
            "voucher_t_eachlimit": "2",
            "voucher_t_limit": "10.00",
            "voucher_t_price": "4",
            "voucher_t_styleimg": null,
            "voucher_t_customimg": "05255219926568485.jpg"
        },
        {
            "voucher_t_id": "354",
            "voucher_t_eachlimit": "3",
            "voucher_t_limit": "5.00",
            "voucher_t_price": "1",
            "voucher_t_styleimg": null,
            "voucher_t_customimg": "05204474129070143.jpg"
        },
        {
            "voucher_t_id": "214",
            "voucher_t_eachlimit": "3",
            "voucher_t_limit": "10.00",
            "voucher_t_price": "3",
            "voucher_t_styleimg": null,
            "voucher_t_customimg": "05073821211602269.jpg"
        },
        {
            "voucher_t_id": "135",
            "voucher_t_eachlimit": "5",
            "voucher_t_limit": "5.00",
            "voucher_t_price": "4",
            "voucher_t_styleimg": null,
            "voucher_t_customimg": "05070591846333568.jpg"
        }
    ]
}