龙举直播电商api开发

api 专栏收录该内容
0 篇文章 0 订阅

龙举直播电商api开发

技术开发说明
1.结构框架:采用 ThinkPHP V5.0(最新版本)——为API开发而设计的高性能框架 ,采用全新的架构思想,PHP新特性,实现了真正的惰性加载,并针对API开发做了大量的优化。数据传输进行加密,保证了数据安全性;根据模块进行分库,对数据的合理安全的处理,确保数据的质量(采用验证器对数据进行严格过滤)和数据库安全性,同时也是专门为开发电商提供的一个api高性能框架;
2.开发思想:采用mvc的开发思想,进行模块化开发;保证了代码的重用性,系统的可维护性,使得项目的可扩展性高。
3.直播优化处理:开播进行主播定位,开播是选择选择直播标签,直播标题,上传封面,开播进行主播定位(百度定位);结束直播同时进行录播保存,防止录播视频卡顿,这里需要进行加速处理;网络异常,或者不正常退出的直播视频处理;直播视频的流畅性和清晰度,同时也保证了录播是视频播放质量;如需后期下载保存同时我们做好了转码保存下的功能。
4.第三方技术采用:直播聊天室(环形,腾讯云),视频推流流地址是(七牛云服务);

用户模块

发送短信

请求方式:post            url: /api/send/message

请求参数

参数名参数类型描述
mobilestringY手机号

返回数据类型json

{"status":"ok","data":"发送成功!"}

短信登录

请求方式:post            url: /api/login/message_login
  • 注:登录或注册成功生成安全秘钥,并且验证唯一性登录,为后期数据交互做安全验证;注册成功后生成聊天室账号密码(环信,腾讯云)为后期直播使用;微信,qq等第三方登录同理。

请求参数

参数名参数类型描述
mobilestringY手机号码
yzmstringY验证码(123456)
logstringY
lagstringY
{
    "status": "ok",
    "data": {
        "member_id": "8234",//uid
        "app_token": "59c86707c282d",//token
        "pc_token": "",
        "uuid": "a170dc7d-43be-d856-a3c4-d3aa3b49093b",
        "phone": "18221695963",
        "pwd": "",
        "header_img": "/Public/admin/touxiang.png",//头像
        "sex": "1",
        "type": "0",
        "username": "龙举会员",
        "signature": "有你想要的,就在龙举直播",//介绍
        "ID": "52071179",
        "alias": "bcq7cg38vx4e",
        "wx_openid": "",
        "qq_openid": "",
        "wo_openid": "",
        "hx_username": "bcq7cg38vx4e",//环信名
        "hx_password": "123456",//环信密码
        "province": "北京市",
        "city": "北京市",
        "area": "东城区",
        "address": "北京市东城区北极阁三条31号",
        "log": "116.42669",
        "lag": "39.917149",
        "zan": "0",
        "uptime": "1506266502",
        "is_del": "1",
        "del_time": "0",
        "intime": "1506216711",
        "e_ticket": "400",//票
        "b_diamond": "99960",//钻石
        "experience": "40",
        "url": "",
        "is_fans": "1",
        "grade": "1",
        "birth_day": "",
        "is_remind": "1",
        "is_banned": "1",
        "banned_start_time": "0",
        "banned_end_time": "0",
        "banned_dis": "",
        "is_wheat": "1",
        "category_id": "",
        "is_show": "1",
        "phpqrcode": "",
        "recommend_id": "0",
        "apply_state": 0,//0未认证 1审核中2:审核通过3:拒绝
        "pay_state": 0//0:未付款 1:付款
    }
}

编辑用户资料

请求方式:post            url: /api/user/edit_user

请求参数

参数名参数类型描述
header_imgstringN头像
usernamestringN用户名
sexintN性别
provincestringN
citystringN
areastringN
signaturestringN个人签名

返回数据类型json

{
    "status": "ok",
    "data": "/Public/admin/touxiang.png"//头像
}

获取用户信息

请求方式:post            url: /api/user/user_info

请求参数

参数名参数类型描述
uidintY
tokenstringY

返回数据类型json

{
    "status": "ok",
    "data": {
        "member_id": "8234",
        "app_token": "59c86707c282d",
        "pc_token": "",
        "uuid": "a170dc7d-43be-d856-a3c4-d3aa3b49093b",
        "phone": "18221695963",
        "pwd": "",
        "header_img": "/Public/admin/touxiang.png",
        "sex": "1",
        "type": "0",
        "username": "游荡者",
        "signature": "这个人很懒什么都没有留下!!",
        "ID": "52071179",
        "alias": "bcq7cg38vx4e",
        "wx_openid": "",
        "qq_openid": "",
        "wo_openid": "",
        "hx_username": "bcq7cg38vx4e",
        "hx_password": "123456",
        "province": "北京市",
        "city": "北京市",
        "area": "东城区",
        "address": "北京市东城区北极阁三条31号",
        "log": "116.42669",
        "lag": "39.917149",
        "zan": "0",
        "uptime": "1506266502",
        "is_del": "1",
        "del_time": "0",
        "intime": "1506216711",
        "e_ticket": "400",
        "b_diamond": "99960",
        "experience": "40",
        "url": "",
        "is_fans": "1",
        "grade": "1",
        "birth_day": "",
        "is_remind": "1",
        "is_banned": "1",
        "banned_start_time": "0",
        "banned_end_time": "0",
        "banned_dis": "",
        "is_wheat": "1",
        "category_id": "",
        "is_show": "1",
        "phpqrcode": "",
        "recommend_id": "0",
        "follow": "0",
        "follow_to": "0",
        "live_count": "4",
        "give_count": "40"
    }
}

图片上传(图片管理)

请求方式:post            url:  /api/login/upload

请求参数

参数名参数类型描述
img[]fileY

返回数据类型json

//多文件上传
{
    "status": "ok",
    "data": [
        "20170925/ef3f33fb933cff3abb579d77fdf8c830.jpg",
        "20170925/39ccf6bc9e76c359662eadf20d6ebf66.png"
    ]
}
//单文件上传
{
    "status": "ok",
    "data": "20170925/45cbdc31f981bcdef44ba0c4038f2d26.jpg"
}

展付宝

我的钱包

请求方式:post            url:/api/live/my_wallet

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken

返回数据类型json

{
    "status": "ok",
    "data": {
        "all_get_money": "3472.00"//展付宝余额
    }
}

提现提交

请求方式:post            url:/api/live/withdraw

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
moneyfloatY金额
withdraw_waystringY账号

返回数据类型json

{
    "status": "ok",
    "data": "提现成功,请等待商家付款"
}

充值

请求方式:post            url: /api/Pingxx/ping

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
moneyfloatY金额
withdraw_waystringY账号

返回数据类型json

{
    "status": "ok",
    "data": {
        "id": "ch_0K0q94SSafDCzLuf18jPi5u5",
        "object": "charge",
        "created": 1508209834,
        "livemode": true,
        "paid": false,
        "refunded": false,
        "reversed": false,
        "app": "app_OqLyzTz1WvDSO8Gm",
        "channel": "alipay",
        "order_no": "20171017111034612765A1508209834",
        "client_ip": "116.226.251.44",
        "amount": 1,
        "amount_settle": 1,
        "currency": "cny",
        "subject": "龙举充值订单",
        "body": "Your Body",
        "extra": [],
        "time_paid": "",
        "time_expire": 1508296234,
        "time_settle": "",
        "transaction_no": "",
        "refunds": {
            "object": "list",
            "url": "/v1/charges/ch_0K0q94SSafDCzLuf18jPi5u5/refunds",
            "has_more": false,
            "data": []
        },
        "amount_refunded": 0,
        "failure_code": "",
        "failure_msg": "",
        "metadata": [],
        "credential": {
            "object": "credential",
            "alipay": {
                "orderInfo": "service="mobile.securitypay.pay"&_input_charset="utf-8"&notify_url="https%3A%2F%2Fnotify.pingxx.com%2Fnotify%2Fcharges%2Fch_0K0q94SSafDCzLuf18jPi5u5"&partner="2088521421945100"&out_trade_no="20171017111034612765A1508209834"&subject="龙举充值订单"&body="Your Body ch_0K0q94SSafDCzLuf18jPi5u5"&total_fee="0.01"&payment_type="1"&seller_id="2088521421945100"&it_b_pay="2017-10-18 11:10:34"&sign="OLNUpPY2YqMb%2B35m0RVmqKD5xsndLk0yCeYwOvjoUGgBl6FU4gB3IoXeZ4oHSrfU7JQcvt1aBzvURD5cydx0MrrBON7J8AuQ0zGZGTl3pNI9epxsP8KeG1G93zRCjTjyUeyNyfC6nKclRgp21x9fckGtPvx8ZQ7NRni1t6wxP3E%3D"&sign_type="RSA""
            }
        },
        "description": ""
    }
}

充值记录

请求方式:post            url: /api/User/recharge_record

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
pintNp
pagesizeintNpagesize

返回数据类型json

{
    "status": "ok",
    "data": {
        "page": 1,
        "data": [
            {
                "amount": "18",      //金额
                "uptime": "2017-10-17 14:59:26",
                "pay_type": "苹果内购",
                "zeng": "0"
            }
        ]
    }
}

提现记录

请求方式:post            url: - /api/live/withdraw_list

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
pintNp
pagesizeintNpagesize

返回数据类型json

{
    "status": "ok",
    "data": [
        {
            "k": "25",
            "money": "0.18",
            "status": "1",
            "intime": "2017-10-24 17:18:36",
            "withdraw_way": "17721249403",
            "cash_time": "0",
            "content": "申请中¥0.18元"
        },
        {
            "k": "2",
            "money": "0.01",
            "status": "1",
            "intime": "2017-10-24 17:16:25",
            "withdraw_way": "17721249403",
            "cash_time": "0",
            "content": "申请中¥0.01元"
        }
    ]
}

收货地址模块

收货地址列表

请求方式:post            url:  /api/Address/queryAddressList

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken

返回数据类型json

{
    "status": "ok",
    "data": {
        "list": [
            {
                "address_id": "48",
                "member_id": "8232",
                "address_mobile": "2147483647",
                "address_name": "杨",
                "address_province": "上海",
                "address_city": "上海",
                "address_country": "浦东新区",
                "address_detailed": "长清路507",
                "address_road": "",
                "address_zip_code": "",
                "address_longitude": "121.49754200034",
                "address_latitude": "31.16739785883",
                "create_time": "2017-10-11 11:50:41",
                "update_time": "2017-10-11 12:05:46",
                "is_default": "1",
                "is_delete": "0"
            }
        ]
    }
}

新增收货地址

请求方式:post            url:  /api/Address/insertAddress

请求参数

参数名参数类型描述
uidint Yuid
tokenstringYtoken
address_namestringY收件人姓名
address_mobilestringY收件人手机
address_provincestringY省份
address_citystringY城市
address_countrystringY区县
address_detailedstringY详细地址
address_roadstringN街道
address_zip_codestringN邮编
is_defaultstringN是否默认;1默认;0不是默认

返回数据类型json

{
    "status": "ok",
    "data": "新增收货地址成功"
}

编辑收货地址

请求方式:post            url:  /api/Address/saveAddress

请求参数

参数名参数类型描述
uidint Yuid
tokenstringYtoken
address_namestringY收件人姓名
address_mobilestringY收件人手机
address_provincestringY省份
address_citystringY城市
address_countrystringY区县
address_detailedstringY详细地址
address_roadstringN街道
address_zip_codestringN邮编
is_defaultstringN是否默认;1默认;0不是默认

返回数据类型json

{
    "status": "ok",
    "data": "编辑收货地址成功"
}

地址默认操作

请求方式:post            url: /api/Address/saveDefaultAddress

请求参数

参数名参数类型描述
uidint Yuid
tokenstringYtoken
address_idintY地址id

返回数据类型json

{
    "status": "ok",
    "data": "地址默认操作成功"
}

删除地址

请求方式:post            url:  /api/Address/delAddress

请求参数

参数名参数类型描述
uidint Yuid
tokenstringYtoken
address_idintY地址id

返回数据类型json

{
    "status": "ok",
    "data": "地址删除成功"
}

直播模块

开启直播

请求方式:post            url:/api/live/start_live

请求参数

参数名参数类型描述
uidintY用户id
tokenstringYtoken
logstringY
lagstringY
titlestringY标题
imgstringY背景图
goods_idintY商品id

返回数据类型json

{
    "status": "ok",
    "data": {
        "nums": "0",
        "push_flow_address": "rtmp://fanlilive.tstmobile.com/vxiu1/php-sdk-test1506308965?e=1506312565&token=pR_CsEkFcTn1Kgf8ZNIh2zUB_w8bzaeLYEgjBItT:yv4cvE5neLXujYzUYUQxuZ3SAwc=",//推流地址
        "play_address": "rtmp://fanlilive.tstmobile.com/vxiu1/php-sdk-test1506308965",//
        "room_id": "28217772670977",
        "ID": "52071179",
        "e_ticket": "400",
        "start_time": "1506308965",
        "live_id": 1,
        "time": "2017.09.25",
        "qiniu_room_id": 123,
        "qiniu_room_name": 123,
        "qiniu_token": 123,
        "is_wheat": "1"
    }
}

进入直播间

请求方式:post            url: /api/live/into_live

请求参数

参数名参数类型描述
uidintY
tokenstringY
live_idintY直播间id

返回数据类型json

{
    "status": "ok",
    "data": {
        "is_follow": "1",
        "is_lignt_up": "1"
    }
}

直播标签(主播)

请求方式:post            url: /api/live/live_class

返回数据类型json

    "status": "ok",
    "data": [
        {
            "live_class_id": "4",
            "tag": "热门直播",
            "img": "http://dspx.tstmobile.com/uploads//image/goods/20171030/dd61cf7d04e71aa983c68f7497cc3260.png",
            "sort": "99",
            "is_del": "1",
            "intime": "1509338674"
        },
        {
            "live_class_id": "1",
            "tag": "直播售卖 ",
            "img": "http://dspx.tstmobile.com/uploads//image/goods/20171030/da4cf3128a5bf2064da448edb4cf37ca.png",
            "sort": "4",
            "is_del": "1",
            "intime": "1509339456"
        },
        {
            "live_class_id": "2",
            "tag": "新品发布",
            "img": "http://dspx.tstmobile.com/uploads//image/goods/20171030/5df8fb1b4fb7e53243a8d289d13abc1c.png",
            "sort": "3",
            "is_del": "1",
            "intime": "1509339453"
        },
        {
            "live_class_id": "3",
            "tag": "直播现场",
            "img": "http://dspx.tstmobile.com/uploads//image/goods/20171030/99b8ca5d295872e2e562a007d5d657ab.png",
            "sort": "2",
            "is_del": "1",
            "intime": "1509339452"
        },
    ]

直播列表

请求方式:post            url: /api/live/anchor_live_list

请求参数

参数名参数类型描述
uidintY
tokenstringY
pintY

返回数据类型json

{
    "status": "ok",
    "data": [
        {
            "live_id": "5199",
            "user_id": "8245",
            "play_img": "http://dspx.tstmobile.com/uploads/touxiang/20171024/3e1cf8a8b7edd26e9a5784034f4c323e.jpg",
            "title": "",
            "lebel": "",
            "live_tag": "1,2,3,4",
            "push_flow_address": "rtmp://fanlilive.tstmobile.com/vxiu1/php-sdk-test1509004834?e=1509008434&token=pR_CsEkFcTn1Kgf8ZNIh2zUB_w8bzaeLYEgjBItT:8gZAoJW4D3ZCTci_P2o3VRlxRyA=",
            "play_address": "rtmp://fanlilive.tstmobile.com/vxiu1/php-sdk-test1509004834",
            "play_address_m3u8": "http://fanlilive.tstmobile.com/vxiu1/php-sdk-test1509004834.m3u8",
            "start_time": "1509004834",
            "end_time": "1509004848",
            "stream_key": "php-sdk-test1509004834",
            "live_status": "2",
            "live_time": "0",
            "room_id": "31044596203521",
            "nums": "0",
            "watch_nums": "-1",
            "light_up_count": "0",
            "intime": "1509004834",
            "date": "2017-10-26",
            "uptime": "0",
            "is_offline": "1",
            "share": "0",
            "zan": "0",
            "qrcode_path": "",
            "log": "121.495832",
            "lag": "31.166807",
            "sheng": "上海市",
            "shi": "上海市",
            "qu": "浦东新区",
            "livewindow_type": "1",
            "address": "上海市浦东新区杨新路281弄1-49号",
            "category_id": "0",
            "qiniu_room_id": "123",
            "qiniu_room_name": "123",
            "qiniu_token": "pR_CsEkFcTn1Kgf8ZNIh2zUB_w8bzaeLYEgjBItT:2pWpdukp5C5BpqOGblYSh98cnXA=:eyJyb29tX25hbWUiOiJcdTRlM2JcdTY0YWQ1NjU1NyIsInVzZXJfaWQiOiIxNTA5MDA0ODM0Nzg4IiwicGVybSI6ImFkbWluIiwiZXhwaXJlX2F0IjoxNTA5MDkxMjM0fQ==",
            "is_normal_exit": "1",
            "tuijian_pc": "1",
            "location": "0",
            "pc_nums": "0",
            "pc_watch_nums": "0",
            "live_money": "0.00",
            "username": "龙举会员",
            "header_img": "http://dspx.tstmobile.com/uploads/touxiang/20171024/3e1cf8a8b7edd26e9a5784034f4c323e.jpg",
            "member_id": "8245"
        },
        {
            "live_id": "5198",
            "user_id": "8245",
            "play_img": "http://dspx.tstmobile.com/uploads/touxiang/20171026/bdfad811ee3163f7b99d5fa38eaf7f54.jpg",
            "title": "郁金油画热卖直播",
            "lebel": "",
            "live_tag": "1,2,3,4",
            "push_flow_address": "rtmp://fanlilive.tstmobile.com/vxiu1/php-sdk-test1509004475?e=1509008076&token=pR_CsEkFcTn1Kgf8ZNIh2zUB_w8bzaeLYEgjBItT:pQ4ohwW-BDpnYrTqKAMjOGSCJUI=",
            "play_address": "rtmp://fanlilive.tstmobile.com/vxiu1/php-sdk-test1509004475",
            "play_address_m3u8": "http://fanlilive.tstmobile.com/vxiu1/php-sdk-test1509004475.m3u8",
            "start_time": "1509004476",
            "end_time": "1509004830",
            "stream_key": "php-sdk-test1509004475",
            "live_status": "2",
            "live_time": "0",
            "room_id": "31044219764737",
            "nums": "6",
            "watch_nums": "4",
            "light_up_count": "0",
            "intime": "1509004476",
            "date": "2017-10-26",
            "uptime": "1509004622",
            "is_offline": "1",
            "share": "0",
            "zan": "0",
            "qrcode_path": "",
            "log": "121.495832",
            "lag": "31.166807",
            "sheng": "上海市",
            "shi": "上海市",
            "qu": "浦东新区",
            "livewindow_type": "1",
            "address": "上海市浦东新区杨新路281弄1-49号",
            "category_id": "0",
            "qiniu_room_id": "123",
            "qiniu_room_name": "123",
            "qiniu_token": "pR_CsEkFcTn1Kgf8ZNIh2zUB_w8bzaeLYEgjBItT:DmLcagOdELKJf6v80tB7nA8WDYE=:eyJyb29tX25hbWUiOiJcdTRlM2JcdTY0YWQ2NDE3OCIsInVzZXJfaWQiOiIxNTA5MDA0NDc2ODI1IiwicGVybSI6ImFkbWluIiwiZXhwaXJlX2F0IjoxNTA5MDkwODc2fQ==",
            "is_normal_exit": "1",
            "tuijian_pc": "1",
            "location": "0",
            "pc_nums": "0",
            "pc_watch_nums": "0",
            "live_money": "0.00",
            "username": "龙举会员",
            "header_img": "http://dspx.tstmobile.com/uploads/touxiang/20171024/3e1cf8a8b7edd26e9a5784034f4c323e.jpg",
            "member_id": "8245"
        }
    ]
}

录播列表

请求方式:post            url: /api/live/other_live_list

请求参数

参数名参数类型描述
uidintY
tokenstringY
pintY

返回数据类型json

{
    "status": "ok",
    "data": [
        {
            "live_store_id": "2462",
            "live_id": "5198",
            "user_id": "8245",
            "play_img": "http://dspx.tstmobile.com/uploads/touxiang/20171026/bdfad811ee3163f7b99d5fa38eaf7f54.jpg",
            "title": "郁金油画热卖直播",
            "url": "http://dspxplay.tstmobile.comrecordings/z1.vxiu1.php-sdk-test1509004475/0_1509004829.m3u8",
            "play_number": "6",
            "live_time": "1509004476",
            "stream_key": "php-sdk-test1509004475",
            "intime": "1509004830",
            "livewindow_type": "1",
            "room_id": "31044219764737",
            "is_tuijian": "1",
            "date": "2017-10-26",
            "collection": "0",
            "lebel": "",
            "is_del": "1",
            "is_audit": "1",
            "header_img": "http://dspx.tstmobile.com/uploads/touxiang/20171024/3e1cf8a8b7edd26e9a5784034f4c323e.jpg",
            "sex": "2",
            "username": "龙举会员",
            "ID": "1996908",
            "hx_username": "417zr6ho41zl",
            "grade": "1",
            "province": "上海市",
            "city": "上海市",
            "zan": "0",
            "signature": "有你想要的,就在龙举直播",
            "e_ticket": "500000",
            "b_diamond": "0"
        },
        {
            "live_store_id": "2463",
            "live_id": "5198",
            "user_id": "8245",
            "play_img": "http://dspx.tstmobile.com/uploads/touxiang/20171026/bdfad811ee3163f7b99d5fa38eaf7f54.jpg",
            "title": "郁金油画热卖直播",
            "url": "http://dspxplay.tstmobile.comrecordings/z1.vxiu1.php-sdk-test1509004475/0_1509004830.m3u8",
            "play_number": "6",
            "live_time": "1509004476",
            "stream_key": "php-sdk-test1509004475",
            "intime": "1509004830",
            "livewindow_type": "1",
            "room_id": "31044219764737",
            "is_tuijian": "1",
            "date": "2017-10-26",
            "collection": "0",
            "lebel": "",
            "is_del": "1",
            "is_audit": "1",
            "header_img": "http://dspx.tstmobile.com/uploads/touxiang/20171024/3e1cf8a8b7edd26e9a5784034f4c323e.jpg",
            "sex": "2",
            "username": "直播会员",
            "ID": "1996908",
            "hx_username": "417zr6ho41zl",
            "grade": "1",
            "province": "上海市",
            "city": "上海市",
            "zan": "0",
            "signature": "有你想要的,就在龙举直播",
            "e_ticket": "500000",
            "b_diamond": "0"
        }
    ]
}

禁言(取消禁言)

请求方式:post            url: /api/live/do_banned

请求参数

参数名参数类型描述
uidintY
tokenstringY
user_idintY用户id
typeintY1:禁言2:取消禁言
live_idintY直播间id

返回数据类型json

{
    "status": "ok",
    "data": "成功!"
}

主播信息

请求方式:post            url: /api/live/get_live_info

请求参数

参数名参数类型描述
uidintY
tokenstringY
user_idintY用户id
live_idintY直播间id

返回数据类型json

{
    "status": "ok",
    "data": {
        "header_img": "",//头像
        "follow_count": "6",//关注数量
        "fans_count": "2",//粉丝数量
        "give_count": "0",//理我数量
        "is_follow": "1//1未关注2已关注
       "room_id":"12121"//聊天室id
    }
}

关注(取消关注)

请求方式:post            url: api/live/follow

请求参数

参数名参数类型描述
uidintY
tokenstringY
user_id2intY主播id
typeintY1:关注 2:取消关注

返回数据类型json

{"status":"ok","data":"成功!"}

礼物列表

请求方式:post            url: /api/live/gift_list

请求参数

参数名参数类型描述
uidintY
tokenstringY

返回数据类型json

{
    "status": "ok",
    "data": [
        {
            "gift_id": "20",
            "name": "鼓掌",
            "img": "/Public/admin/Uploads/8d8d9ba994f7366b8a71e074950870cf.png",
            "price": "2000",
            "experience": "2000",
            "num_norms": "10",
            "intime": "1492056378",
            "uptime": "1501819101",
            "is_running": "2"
        },
        {
            "gift_id": "19",
            "name": "鲜花",
            "img": "/Public/admin/Uploads/c9935b03418de8e54a98f985dd5f6fc6.png",
            "price": "1500",
            "experience": "1500",
            "num_norms": "10",
            "intime": "1492056353",
            "uptime": "0",
            "is_running": "2"
        },
        {
            "gift_id": "18",
            "name": "大拇指",
            "img": "/Public/admin/Uploads/ea11ee09b7b3b1ff6672fb4beda737e0.png",
            "price": "1000",
            "experience": "1000",
            "num_norms": "10",
            "intime": "1492056334",
            "uptime": "0",
            "is_running": "2"
        },
        {
            "gift_id": "17",
            "name": "飞机",
            "img": "/Public/admin/Uploads/07c2551b6fb7dfe9e06316497da78ca7.png",
            "price": "800",
            "experience": "800",
            "num_norms": "10",
            "intime": "1492056296",
            "uptime": "1501819073",
            "is_running": "2"
        },
        {
            "gift_id": "16",
            "name": "火箭",
            "img": "/Public/admin/Uploads/b9499528791a43bcf14acab74797ef5a.png",
            "price": "500",
            "experience": "500",
            "num_norms": "10",
            "intime": "1492056271",
            "uptime": "1501819054",
            "is_running": "2"
        },
        {
            "gift_id": "15",
            "name": "飞吻",
            "img": "/Public/admin/Uploads/88782f59e17c547aed321370f6b2f571.png",
            "price": "300",
            "experience": "300",
            "num_norms": "10",
            "intime": "1492056248",
            "uptime": "0",
            "is_running": "2"
        },
        {
            "gift_id": "12",
            "name": "果篮",
            "img": "/Public/admin/Uploads/e5cca510b1ab633d3c42c63349edca30.png",
            "price": "10",
            "experience": "10",
            "num_norms": "10",
            "intime": "1492056187",
            "uptime": "1501819032",
            "is_running": "2"
        },
   }

送礼

请求方式:post            url: /api/live/give_gift

请求参数

参数名参数类型描述
uidintY
tokenstringY
live_idintY直播间id
gift_idintY礼物id

返回数据类型json

{"status":"ok","data":"送礼成功!"}

直播间用户列表

请求方式:post            url:/api/live/show_viewer

请求参数

参数名参数类型描述
uidintY
tokenstringY
live_idintY直播间id

返回数据类型json

{
    "status": "ok",
    "data": {
        "list": [
            {
                "user_id2": "8234",
                "member_id": "8234",
                "header_img": "/Public/admin/touxiang.png",
                "username": "龙举会员",
                "grade": "1",
                "ID": "52071179",
                "hx_username": "bcq7cg38vx4e",
                "hx_password": "123456",
                "b_diamond": "97960",
                "e_ticket": "20400",
                "sex": "1",
                "province": "上海",
                "city": "北京市",
                "area": "东城区",
                "follow_count": "0",
                "fans_count": "0",
                "is_follow": "1",//1未关注   2:关注
                "is_banned": "1",//1未禁言   2:已禁言
                "is_management": "1",//1不是管理员  2:是管理员 
                "give_count": "9"
            }
        ],
        "count": "1"
    }
}

获取直播间用户信息

请求方式:post            url: /api/live/other_center

请求参数

参数名参数类型描述
uidintY
tokenstringY
user_idintY他人id

返回数据类型json

{
    "status": "ok",
    "data": {
        "member_id": "8245",
        "app_token": "59f0897aeabea",
        "pc_token": "",
        "uuid": "c1655554-1063-1861-e054-8a7445933d56",
        "phone": "15800620878",
        "pwd": "",
        "header_img": "http://dspx.tstmobile.com/uploads/touxiang/20171024/3e1cf8a8b7edd26e9a5784034f4c323e.jpg",
        "sex": "2",
        "type": "1",
        "username": "龙举会员",
        "signature": "",
        "ID": "1996908",
        "alias": "417zr6ho41zl",
        "wx_openid": "",
        "qq_openid": "",
        "wo_openid": "",
        "hx_username": "417zr6ho41zl",
        "hx_password": "123456",
        "province": "上海市",
        "city": "上海市",
        "area": "浦东新区",
        "address": "上海市浦东新区杨新路281弄1-49号",
        "log": "121.495832",
        "lag": "31.166807",
        "zan": "0",
        "uptime": "1508997206",
        "is_del": "1",
        "del_time": "0",
        "intime": "1506409592",
        "e_ticket": "500000",
        "b_diamond": "0",
        "amount": "0.00",
        "experience": "0",
        "url": "",
        "is_fans": "1",
        "grade": "1",
        "birth_day": "",
        "is_remind": "1",
        "is_banned": "1",
        "banned_start_time": "0",
        "banned_end_time": "0",
        "banned_dis": "",
        "is_wheat": "1",
        "category_id": "",
        "live_tag": "1,2,3,4",
        "is_show": "1",
        "phpqrcode": "",
        "recommend_id": "0",
        "img": "http://dspx.tstmobile.com/uploads/touxiang/20171024/3e1cf8a8b7edd26e9a5784034f4c323e.jpg",
        "follow": "0",
        "follow_to": "19",
        "collection": "0",
        "is_follow": "1",
        "live_count": "52",
        "give_count": "17",
        "is_live": "1"
    }
}

退出直播间

请求方式:post            url: /api/live/end_live

请求参数

参数名参数类型描述
uidintY
tokenstringY
live_idintY

返回数据类型json

{
    "status": "ok",
    "data": {
        "live_id": "4938",
        "user_id": "8234",
        "play_img": "",
        "title": "",
        "start_time": "1506240736",
        "end_time": "1506314719",
        "watch_nums": "1",
        "share": "0",
        "stream_key": "php-sdk-test1506240735",
        "room_id": "28146228330497",
        "lebel": "1",
        "header_img": "/Public/admin/touxiang.png",
        "username": "龙举会员",
        "ID": "52071179",
        "url": "http://oc3pwoyhb.bkt.clouddn.com/recordings/z1.vxiu1.php-sdk-test1506240735/0_1506314719.m3u8",
        "time": "20:33:3",
        "get_fire": "40"
    }
}

商城模块

全部分类

请求方式:post            url: /api/Mall/showGoodsClass

请求参数

参数名参数类型描述
mobilestringY手机号

返回数据类型json

{
    "status": "ok",
    "data": [
        {
            "class_id": "4",
            "class_name": "品牌推荐",
            "class_desc": "一级分类",
            "class_img": "/images/goods//wangtao.png",
            "class_color": "#000000",
            "class_uuid": "baa5ae20-05df-4b15-9b80-a742b08f52cd"
        },
        {
            "class_id": "3",
            "class_name": "珠宝/首饰/手表",
            "class_desc": "一级分类",
            "class_img": "/images/goods//wangtao.png",
            "class_color": "#000000",
            "class_uuid": "f2d360df-4184-4058-bf40-75e44ecb6002"
        },
        {
            "class_id": "2",
            "class_name": "酒水/饮料/粮油",
            "class_desc": "一级分类",
            "class_img": "/images/goods//meishi.png",
            "class_color": "#000000",
            "class_uuid": "d08baf09-db4e-4505-b7da-26a6f1e33b65"
        },
        {
            "class_id": "1",
            "class_name": "艺术/收藏/古玩",
            "class_desc": "一级分类",
            "class_img": "/images/goods//jiudian.png",
            "class_color": "#000000",
            "class_uuid": "dasdas"
        }
    ]
}

分类全部商品

请求方式:post            url: /api/Mall/class_goods

请求参数

参数名参数类型描述
class_uuidstringY分类uuid
pintN分页页码值
pagesizeintN分页显示数

返回数据类型json

{
    "status": "ok",
    "data": {
        "page": 1,
        "goodsClass": {
            "class_id": "2",
            "class_name": "旺旺",       //分类名
            "class_desc": "二级分类",
            "class_img": "/images/goods//meishi.png",
            "class_color": "#000000",
            "class_uuid": "d08baf09-db4e-4505-b7da-26a6f1e33b65",
            "template_img": "",            //宣传图
            "goodsBean": [      //商品
                {
                    "goods_id": "5",
                    "goods_name": "旺旺商品1",
                    "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                    "goods_origin_price": "0.00",
                    "goods_pc_price": "0",
                    "goods_now_price": "7166.00"
                },
                {
                    "goods_id": "6",
                    "goods_name": "旺旺商品二",
                    "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                    "goods_origin_price": "0.00",
                    "goods_pc_price": "0",
                    "goods_now_price": "6202.00"
                }
            ]
        }
    }
}
}

推荐分类商品

请求方式:post            url: /api/Mall/class_goods

请求参数

参数名参数类型描述
pintN分页页码值
pagesizeintN分页显示数

返回数据类型json

{
    "status": "ok",
    "data": [
        {
            "class_id": "4",
            "class_name": "格兰仕",           //分类名
            "class_desc": "品牌推荐",
            "class_img": "/images/goods//wangtao.png",
            "class_color": "#000000",
            "class_uuid": "baa5ae20-05df-4b15-9b80-a742b08f52cd",
            "show_goods": []
        },
        {
            "class_id": "3",
            "class_name": "九阳",
            "class_desc": "品牌推荐",
            "class_img": "/images/goods//wangtao.png",
            "class_color": "#000000",
            "class_uuid": "f2d360df-4184-4058-bf40-75e44ecb6002",
            "show_goods": []
        },
        {
            "class_id": "2",
            "class_name": "蒙牛",
            "class_desc": "品牌推荐",
            "class_img": "/images/goods//meishi.png",
            "class_color": "#000000",
            "class_uuid": "d08baf09-db4e-4505-b7da-26a6f1e33b65",
            "show_goods": [//商品列表
                {
                    "goods_id": "5",
                    "goods_name": "蒙牛酸牛奶1",
                    "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                    "goods_origin_price": "0.00",
                    "goods_pc_price": "0",
                    "goods_now_price": "7166.00"
                },
                {
                    "goods_id": "6",
                    "goods_name": "蒙牛酸牛奶1",
                    "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                    "goods_origin_price": "0.00",
                    "goods_pc_price": "0",
                    "goods_now_price": "6202.00"
                }
            ]
        },
        {
            "class_id": "1",
            "class_name": "良品铺子",
            "class_desc": "品牌推荐",
            "class_img": "/images/goods//jiudian.png",
            "class_color": "#000000",
            "class_uuid": "dasdas",
            "show_goods": [
                {
                    "goods_id": "7",
                    "goods_name": "良子食品1",
                    "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                    "goods_origin_price": "0.00",
                    "goods_pc_price": "0",
                    "goods_now_price": "1510.00"
                },
                {
                    "goods_id": "8",
                    "goods_name": "良子食品1",
                    "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                    "goods_origin_price": "0.00",
                    "goods_pc_price": "0",
                    "goods_now_price": "4943.00"
                }
            ]
        }
    ]
}
请求方式:post            url: /api/index/banner_list

请求参数

参数名参数类型描述
class_uuidstringY分类uuid
pintN分页页码值
pagesizeintN分页显示数

返回数据类型json

{
    "status": "ok",
    "data": [
        {
            "b_img": "/Uploads/image/banner/20170622/594b7fde78ac6.png",
            "b_id": "8",
            "url": "",
            "b_type": "2",
            "title": "龙举直播开始了"
        },
        {
            "b_img": "/Uploads/image/banner/20170622/594b7f8212f56.png",
            "b_id": "12",
            "url": "",
            "b_type": "3",
            "title": "龙举直播开始了"
        },
        {
            "b_img": "/Uploads/image/banner/20170622/594b7facc5172.png",
            "b_id": "13",
            "url": "",
            "b_type": "4",
            "title": "龙举直播开始了"
        },
        {
            "b_img": "/Uploads/image/banner/20170719/596f41c1ef3f7.jpg",
            "b_id": "14",
            "url": "",
            "b_type": "1",
            "title": "龙举直播开始了"
        }
    ]

商品基础信息

请求方式:post            url: /api/index/banner_list

请求参数

参数名参数类型描述
goodsidintY
uidintNuid
tokenstringNtoken

返回数据类型json

{
    "status": "ok",
    "data": {
        "goods_id": "1",
        "goods_name": "iphone x",
        "goods_img": "http://dspx.tstmobile.com/uploads//image/goods/20171023/87774b85051e0c6cad100936659835c3.jpg",
        "imgs": [
            "/uploads/image/goods/20171023/4c0ed00fc88b42c182513025362cd06b.jpg",
            "/uploads/image/goods/20171009/f2e73fe2941e080a2037962ecde5087f.png",
            "/uploads/image/20170928/7be5d0f9d32e88ea69815d826bfb1988.jpg",
            "/uploads/image/20170928/c53352fc9b3a9f1caaa320b288170191.jpg",
            "/uploads/image/20170928/7be5d0f9d32e88ea69815d826bfb1988.jpg"
        ],
        "code": "13242412",
        "goods_desc": "衣服衣服衣服衣服衣服衣服",
        "goods_origin_price": "200.00",
        "goods_pc_price": "0",
        "goods_now_price": "100.00",
        "total_sales": "29",
        "month_sales": "0",
        "day_sales": "0",
        "goods_stock": "100",
        "goods_address": "",
        "is_give_integral": "0",
        "give_integral_value": "0",
        "goods_star1": "5",
        "goods_star2": "5",
        "goods_star3": "5",
        "merchants_id": "8245",
        "goods_detail": "<p>收到噶</p>",
        "goodsSpecificationBeans": [
            {
                "specification_id": "1",
                "specification_value": "内存",
                "specificationBeans": [
                    {
                        "specification_value": "64G",
                        "specification_id": "2"
                    },
                    {
                        "specification_value": "128G",
                        "specification_id": "3"
                    }
                ]
            },
            {
                "specification_id": "8",
                "specification_value": "颜色",
                "specificationBeans": [
                    {
                        "specification_value": "红色",
                        "specification_id": "9"
                    },
                    {
                        "specification_value": "白色",
                        "specification_id": "10"
                    }
                ]
            }
        ],
        "specification": "内存、颜色",
        "is_collect": "2",
        "goods_url": "http://dspx.tstmobile.com/api/mall/goods_url/goods_id/1.html",
        "comment_count": "0",
        "comment": []
    }
}

商品收藏列表

请求方式:post            url: /api/Mall/collect

请求参数

参数名参数类型描述
goodsidintY
tokenstringYtoken
uidintNuid
pintNp
pagesizeintYpagesize

返回数据类型json

{
    "status": "ok",
    "data": {
        "page": 1,
        "list": [
            {
                "collection_id": "238",
                "goods_id": "1",
                "goods_name": "旺旺食品1",
                "goods_img": "http://dspx.tstmobile.com/uploads//image/20171012/2dfea4827e1618262d1e485e117790af.jpg",
                "goods_now_price": "111.80",      //价格
                "goods_origin_price": "111.80",     /
                "goods_pc_price": "0",       //
                "goods_desc": "sadsadsad"       //商品简介
            }
        ]
    }
}

商品收藏与取消收藏

请求方式:post            url: /api/Mall/goods_collect

请求参数

参数名参数类型描述
goodsidintY
uidintNuid
tokenstringYtoken

返回数据类型json

{
    "status": "ok",
    "data": "1"      //1收藏成功;2取消收藏
}

商品收藏列表批量删除

请求方式:post            url: /api/Mall/del_collect

请求参数

参数名参数类型描述
idsintY逗号隔开收藏id
uidintNuid
tokenstringYtoken

返回数据类型json

{
    "status": "error",
    "data": "操作失败"
}

商户店铺推荐

请求方式:post            url: /api/Mall/showMerchants

请求参数

参数名参数类型描述
merchants_idintY商户member_id
class_uuidintN分类对应的uuid
pintN分页页码值
pagesizeintN分页显示数

返回数据类型json

{
    "status": "ok",
    "data": [
        {
            "member_id": "8244",
            "merchants_img": "http://dspx.tstmobile.com/uploads/20170926/e0c0e90189deb56ebe35605e3ea0ce47.png",
            "live_id": "4998",
            "merchants_name": "推荐店铺1",
            "room_id": "29591685103618",
            "play_address": "rtmp://fanlilive.tstmobile.com/vxiu1/php-sdk-test1507619230"
        }
    ]
}

商户店铺分类商品

请求方式:post            url: api/Mall/merchants_class_goods

请求参数

参数名参数类型描述
merchants_idintY商户member_id
class_uuidintN分类对应的uuid
pintN分页页码值
pagesizeintN分页显示数

返回数据类型json

{
    "status": "ok",
    "data": {
        "page": 1,      //
        "list": [
            {
                "goods_id": "5",
                "goods_name": "郁金香油画",
                "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                "goods_origin_price": "0.00",
                "goods_pc_price": "0",
                "goods_now_price": "7166.00"
            },
            {
                "goods_id": "6",
                "goods_name": "清明上河图",
                "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                "goods_origin_price": "0.00",
                "goods_pc_price": "0",
                "goods_now_price": "6202.00"
            }
        ]
    }
}

商户店铺分类

请求方式:post            url: /api/Mall/merchants_class

请求参数

参数名参数类型描述
merchants_idintY商户member_id

返回数据类型json

{
    "status": "ok",
    "data": [
        {
            "class_id": "1",
            "class_name": "项链",       //分类名
            "class_uuid": "dasdas"     //分类uuid
        },
        {
            "class_id": "2",
            "class_name": "手链",
            "class_uuid": "d08baf09-db4e-4505-b7da-26a6f1e33b65"
        },
        {
            "class_id": "3",
            "class_name": "发饰",
            "class_uuid": "f2d360df-4184-4058-bf40-75e44ecb6002"
        }
    ]
}

商户店铺全部商品

请求方式:post            url: /api/Mall/merchants_class

请求参数

参数名参数类型描述
merchants_idintY商户member_id
pintN分页页码
pagesizeintN分页显示数
goods_namestringN搜索商品名称

返回数据类型json

{
    "status": "ok",
    "data": {
        "page": 7,       //总页数
        "list": [
            {
                "goods_id": "1",      //商品id 
                "goods_name": "macPro",
                "goods_img": "/images/goods/dazhao.png",
                "goods_origin_price": "111.80",     //原价
                "goods_pc_price": "0",          //pc电脑端价格
                "goods_now_price": "111.80"        //现价
            },
            {
                "goods_id": "2",
                "goods_name": "iphone8",
                "goods_img": "/images/goods/digua1.png",
                "goods_origin_price": "47.80",
                "goods_pc_price": "48",
                "goods_now_price": "47.80"
            },
            {
                "goods_id": "3",
                "goods_name": "iphone8s",
                "goods_img": "/images/goods/jidan1.png",
                "goods_origin_price": "63.80",
                "goods_pc_price": "64",
                "goods_now_price": "63.80"
            },
            {
                "goods_id": "4",
                "goods_name": "iphone8x",
                "goods_img": "/images/goods/hetao4.png",
                "goods_origin_price": "104.80",
                "goods_pc_price": "0",
                "goods_now_price": "104.80"
            },
            {
                "goods_id": "5",
                "goods_name": "iphone7 plus",
                "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                "goods_origin_price": "0.00",
                "goods_pc_price": "0",
                "goods_now_price": "7166.00"
            },
            {
                "goods_id": "6",
                "goods_name": "iphone6 plus",
                "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                "goods_origin_price": "0.00",
                "goods_pc_price": "0",
                "goods_now_price": "6202.00"
            },
            {
                "goods_id": "7",
                "goods_name": "iphone6s plus",
                "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                "goods_origin_price": "0.00",
                "goods_pc_price": "0",
                "goods_now_price": "1510.00"
            },
            {
                "goods_id": "8",
                "goods_name": "iphone6s plus",
                "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                "goods_origin_price": "0.00",
                "goods_pc_price": "0",
                "goods_now_price": "4943.00"
            },
            {
                "goods_id": "9",
                "goods_name": "iphone6s plus",
                "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                "goods_origin_price": "0.00",
                "goods_pc_price": "0",
                "goods_now_price": "4184.00"
            },
            {
                "goods_id": "10",
                "goods_name": "iphone5s",
                "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                "goods_origin_price": "0.00",
                "goods_pc_price": "0",
                "goods_now_price": "6092.00"
            }
        ]
    }
}

搜索商品

请求方式:post            url: /api/Mall/searchGoods

请求参数

参数名参数类型描述
namestringY关键字
typeintY1:综合
pintN分页页码
pagesizeintN分页显示数

返回数据类型json

{
    "status": "ok",
    "data": {
        "page": 7,
        "goodsBean": [
            {
                "goods_id": "70",
                "goods_img": "/images/20170917//1505655040755.png",
                "goods_name": "iphone6s plus",
                "goods_now_price": "2000.00",
                "goods_pc_price": "0",
                "goods_origin_price": "1000.00",
                "total_sales": "100",
                "month_sales": "2",
                "day_sales": "1"
            },
            {
                "goods_id": "1",
                "goods_img": "/images/goods/dazhao.png",
                "goods_name": "iphone6s plus",
                "goods_now_price": "111.80",
                "goods_pc_price": "0",
                "goods_origin_price": "111.80",
                "total_sales": "29",
                "month_sales": "0",
                "day_sales": "0"
            },
            {
                "goods_id": "2",
                "goods_img": "/images/goods/digua1.png",
                "goods_name": "iphone6s plus",
                "goods_now_price": "47.80",
                "goods_pc_price": "48",
                "goods_origin_price": "47.80",
                "total_sales": "8",
                "month_sales": "0",
                "day_sales": "0"
            },
            {
                "goods_id": "3",
                "goods_img": "/images/goods/jidan1.png",
                "goods_name": "iphone6s plus",
                "goods_now_price": "63.80",
                "goods_pc_price": "64",
                "goods_origin_price": "63.80",
                "total_sales": "8",
                "month_sales": "0",
                "day_sales": "0"
            },
            {
                "goods_id": "10",
                "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                "goods_name": "iphone6s plus",
                "goods_now_price": "6092.00",
                "goods_pc_price": "0",
                "goods_origin_price": "0.00",
                "total_sales": "8",
                "month_sales": "0",
                "day_sales": "0"
            },
            {
                "goods_id": "11",
                "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                "goods_name": "快肌何炽俞础烂主霞姐",
                "goods_now_price": "1906.00",
                "goods_pc_price": "0",
                "goods_origin_price": "0.00",
                "total_sales": "8",
                "month_sales": "0",
                "day_sales": "0"
            },
            {
                "goods_id": "16",
                "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                "goods_name": "iphone6s plus",
                "goods_now_price": "7818.00",
                "goods_pc_price": "0",
                "goods_origin_price": "0.00",
                "total_sales": "8",
                "month_sales": "0",
                "day_sales": "0"
            },
            {
                "goods_id": "19",
                "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                "goods_name": "iphone6s plus",
                "goods_now_price": "452.00",
                "goods_pc_price": "0",
                "goods_origin_price": "0.00",
                "total_sales": "8",
                "month_sales": "0",
                "day_sales": "0"
            },
            {
                "goods_id": "20",
                "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                "goods_name": "iphone6s plus",
                "goods_now_price": "5812.00",
                "goods_pc_price": "0",
                "goods_origin_price": "0.00",
                "total_sales": "8",
                "month_sales": "0",
                "day_sales": "0"
            },
            {
                "goods_id": "33",
                "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                "goods_name": "iphone6s plus",
                "goods_now_price": "2570.00",
                "goods_pc_price": "0",
                "goods_origin_price": "0.00",
                "total_sales": "8",
                "month_sales": "0",
                "day_sales": "0"
            }
        ]
    }
}

购物车商品数量

请求方式:post            url: /api/Mall/getShopCarCount

请求参数

参数名参数类型描述
uidstringYuid
tokenintY

返回数据类型json

{
    "status": "ok",
    "data": "1"
}

查询型号库存价格

请求方式:post            url: /api/Mall/get_specification

请求参数

参数名参数类型描述
goods_idintYgoods_id
specification_idsstringY

返回数据类型json

{
    "status": "ok",
    "data": {
        "specification_id": "4",
        "goods_id": "3",
        "specification_state": "1",
        "specification_sku": "",
        "specification_ids": "27,5",
        "specification_names": "1件",
        "specification_sales": "9",
        "specification_stock": "91",
        "specification_img": "",
        "specification_price": "47.80",
        "specification_sale_price": "0.00",
        "create_time": "2017-09-19 19:34:42",
        "update_time": "2017-09-19 19:34:46",
        "is_delete": "0"
    }
}

购物车数量加1

请求方式:post            url:/api/Mall/plusShopCar

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
car_idintY购物车id

返回数据类型json

{
    "status": "ok",
    "data": "添加商品数量成功"
}

购物车列表

请求方式:post            url: /api/Mall/getShopCars

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken

返回数据类型json

{
    "status": "ok",
    "data": {
        "valid_data": [       //有效商品
            {
                "merchants_id": "8234",
                "merchants_name": "店铺1",     //店铺名
                "merchants_img": "http://dspx.tstmobile.com/uploads/20170926/8d4dd68dc26d813eba486bff889b17f6.jpg",   //店铺图片
                "goods": [     //店铺商品列表
                    {
                        "car_id": "4",
                        "specification_id": "0",
                        "goods_name": "iphone6s plus",      //
                        "goods_num": "2",
                        "goods_img": "/images/goods/jidan1.png",
                        "specification_names": "",
                        "goods_origin_price": "63.80",      //原价
                        "goods_pc_price": "64",
                        "goods_now_price": "63.80"       //现价
                    }
                ]
            },
            {
                "merchants_id": "8244",
                "merchants_name": "店铺名称1",
                "merchants_img": "http://dspx.tstmobile.com/uploads/20170926/e0c0e90189deb56ebe35605e3ea0ce47.png",
                "goods": [
                    {
                        "specification_id": "4",
                        "goods_name": "iphone6s plus",
                        "goods_num": "2",
                        "goods_img": "/images/goods/jidan1.png",
                        "specification_names": "2500g/箱",
                        "goods_origin_price": "47.80",      //
                        "goods_pc_price": "64",
                        "goods_now_price": "0.00"
                    }
                ]
            }
        ],
        "no_valid_data": []     //购物车中无效商品
    }
}

购物猜你你喜欢(推荐)

请求方式:post            url: /api/Mall/maybeEnjoy

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
pagesizeintN显示几条

返回数据类型json

{
    "status": "ok",
    "data": [
        {
            "goods_id": "37",
            "goods_name": "iphone6s plus",
            "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
            "goods_origin_price": "0.00",     // 原价
            "goods_pc_price": "0",
            "goods_now_price": "5145.00"     //现价
        },
        {
            "goods_id": "32",
            "goods_name": "iphone6s plus",
            "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
            "goods_origin_price": "0.00",
            "goods_pc_price": "0",
            "goods_now_price": "1228.00"
        },
        {
            "goods_id": "35",
            "goods_name": "iphonex",
            "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
            "goods_origin_price": "0.00",
            "goods_pc_price": "0",
            "goods_now_price": "6120.00"
        },
        {
            "goods_id": "36",
            "goods_name": "iphonex",
            "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
            "goods_origin_price": "0.00",
            "goods_pc_price": "0",
            "goods_now_price": "3101.00"
        },
        {
            "goods_id": "40",
            "goods_name": "iphonex",
            "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
            "goods_origin_price": "0.00",
            "goods_pc_price": "0",
            "goods_now_price": "4114.00"
        },
        {
            "goods_id": "34",
            "goods_name": "iphone8 plus",
            "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
            "goods_origin_price": "0.00",
            "goods_pc_price": "0",
            "goods_now_price": "1166.00"
        },
        {
            "goods_id": "41",
            "goods_name": "iphone8",
            "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
            "goods_origin_price": "0.00",
            "goods_pc_price": "0",
            "goods_now_price": "4538.00"
        },
        {
            "goods_id": "38",
            "goods_name": "iphone6",
            "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
            "goods_origin_price": "0.00",
            "goods_pc_price": "0",
            "goods_now_price": "423.00"
        },
        {
            "goods_id": "39",
            "goods_name": "iphonex",
            "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
            "goods_origin_price": "0.00",
            "goods_pc_price": "0",
            "goods_now_price": "2676.00"
        },
        {
            "goods_id": "33",
            "goods_name": "iphone6s",
            "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
            "goods_origin_price": "0.00",
            "goods_pc_price": "0",
            "goods_now_price": "2570.00"
        }
    ]
}

购物车清空无效商品

请求方式:post            url: /api/Mall/delInvalidShopCars

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken

返回数据类型json

{
    "status": "ok",
    "data": "操作成功"
}

添加购物车

请求方式:post            url: /api/Mall/insertShopCar

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
goods_idintYgoods_id
goods_numintY数量
specification_idintN型号id

返回数据类型json

{
    "status": "ok",
    "data": "商品添加购物车成功"
}

购物车数量减1

请求方式:post            url: /api/Mall/minusShopCar

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
car_idintY购物车id

返回数据类型json

{
    "status": "ok",
    "data": "减少商品数量成功"
}

删除购物车商品

请求方式:post            url: /api/Mall/delShopCar

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
car_idintY购物车id

返回数据类型json

{
    "status": "ok",
    "data": "删除成功"
}

单件商品购买

请求方式:post            url: /api/Order/confirmGoodsInfo

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
goods_idintY商品id
goods_numintY商品数量
specification_idintY商品规格id

返回数据类型json

{
    "status": "ok",
    "data": {
        "list": [
            {
                "merchants_id": "2",
                "merchants_name": "店铺名称1",
                "merchants_img": "http://dspx.tstmobile.com/uploads/20170926/e0c0e90189deb56ebe35605e3ea0ce47.png",
                "goods": [
                    {
                        "goods_id": "1",
                        "goods_name": "ipone7 plus",
                        "goods_img": "http://dspx.tstmobile.com/uploads//image/20171012/2dfea4827e1618262d1e485e117790af.jpg",
                        "goods_origin_price": "111.80",
                        "goods_pc_price": "0",
                        "goods_now_price": "111.80",
                        "merchants_id": "8244",
                        "specification_names": "",
                        "goods_num": "2"
                    }
                ],
                "totalPrice": "223.60",
                "totalNum": "2"
            }
        ],
        "amount": "223.60",
        "num": "2"
    }
}

确认收货(待收货)

请求方式:post            url: /api/Order/receiveOrder

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
order_merchants_idintY

返回数据类型json

{
    "status": "ok",
    "data": "确认收货操作成功"
}

取消订单(未支付)

请求方式:post            url:/api/Order/cancelOrder

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
order_merchants_idintY

返回数据类型json

{
    "status": "ok",
    "data": "取消订单操作成功"
}

取消订单时间提醒

请求方式:post            url:/api/Order/cancelTime

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
order_merchants_idintY

返回数据类型json

{
    "status": "ok",
    "data": "1小时1分"
}

删除订单(已完成)

请求方式:post            url:/api/Order/delOrder

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
order_merchants_idintY

返回数据类型json

   {
    "status": "ok",
    "data": "删除订单操作成功"
}

订单下单

请求方式:post            url:/api/Order/insertMallOrder

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
jsonstringY{ “member_id”: “用户id”, “address_id”: “地址id”, “deduct_integral_value”: “抵扣积分”,”coupon_ids”:”优惠券id逗号”, “orderBeans”: [ { “merchants_id”: “商家id”, “order_type”: “goods:正常下单 group:团购下单”, “order_remark”: “订单备注”, “member_group_id”: “团购下单 需传值 用户开团主键”, “orderGoodsBeans”: [ { “goods_id”: “商品id”, “specification_id”: “规格id”, “goods_num”: “购买数量”, “goods_group_id”: “团购下单 需传值” } ] } ] }

返回数据类型json

   {
    "status": "ok",
    "data": "删除订单操作成功"
}

订单详情

请求方式:post            url:/api/Order/queryOrderView

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
order_merchants_idintY

返回数据类型json

  {
    "status": "ok",
    "data": {
        "order_merchants_id": "7",
        "order_id": "4",
        "pay_no": "201710141425383901280720",       //支付单号
        "merchants_id": "8234",      
        "order_actual_price": "27978.00",      //实际支付
        "merchants_name": "龙举手机旗舰店",
        "create_time": "2017-10-14 14:25:38",
        "pay_time": "0000-00-00 00:00:00",        //支付实际
        "order_remark": "",      //留言
        "deduct_integral_value": "",       //积分
        "order_no": "58021507962338788",        //订单号
        "totalNum": "7"       //订单商品总数
        "orderBeans": [
            {
                "goods_id": "34",
                "goods_num": "3",
                "goods_name": "iponex",
                "goods_img": "http://dspx.tstmobile.com/uploads//image/20171012/2dfea4827e1618262d1e485e117790af.jpg",
                "specification_id": "0",
                "specification_ids": "",
                "specification_names": "无",
                "specification_price": "1166.00"
            },
            {
                "goods_id": "35",
                "goods_num": "4",
                "goods_name": "iponex",
                "goods_img": "http://dspx.tstmobile.com/uploads//image/20171012/2dfea4827e1618262d1e485e117790af.jpg",
                "specification_id": "0",
                "specification_ids": "",
                "specification_names": "无",
                "specification_price": "6120.00"
            }
        ]
    }
}

订单根据状态分类

请求方式:post            url:/api/Order/queryOrderView

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
order_statestringY订单状态 cancel:取消 wait_pay:待付款 wait_send:带发货 wait_receive:待确认收货 wait_assessment:待评价 end:已结束 wait_group:等待团购人数满
pintN分页页码
pagesizeintN条数

返回数据类型json

{
    "status": "ok",
    "data": {
        "page": 1,
        "list": [
            {
                "order_merchants_id": "5",
                "order_no": "201710141105226831743589",
                "merchants_id": "8244",
                "order_actual_price": "428.80",
                "merchants_name": "龙举手机旗舰店",
                "totalNum":"订单商品总数"
                "orderBeans": [
                    {
                        "goods_id": "3",
                        "goods_num": "3",
                        "goods_name": "phonex",
                        "goods_img": "http://dspx.tstmobile.com/uploads//image/20171012/2dfea4827e1618262d1e485e117790af.jpg",
                        "specification_id": "4",
                        "specification_ids": "5,27",
                        "specification_names": "件",
                        "specification_price": "47.80"
                    },
                    {
                        "goods_id": "4",
                        "goods_num": "3",
                        "goods_name": "iphone7",
                        "goods_img": "http://dspx.tstmobile.com/uploads//image/20171012/2dfea4827e1618262d1e485e117790af.jpg",
                        "specification_id": "3",
                        "specification_ids": "23",
                        "specification_names": "件",
                        "specification_price": "111.80"
                    }
                ]
            },
            {
                "order_merchants_id": "6",
                "order_no": "201710141105224132593847",
                "merchants_id": "8244",
                "order_actual_price": "428.80",
                "merchants_name": "龙举手机旗舰店1",
                "orderBeans": [
                    {
                        "goods_id": "3",
                        "goods_num": "3",
                        "goods_name": "iphone7",
                        "goods_img": "http://dspx.tstmobile.com/uploads//image/20171012/2dfea4827e1618262d1e485e117790af.jpg",
                        "specification_id": "4",
                        "specification_ids": "5,27",
                        "specification_names": "件",
                        "specification_price": "47.80"
                    },
                    {
                        "goods_id": "4",
                        "goods_num": "3",
                        "goods_name": "iphone8",
                        "goods_img": "http://dspx.tstmobile.com/uploads//image/20171012/2dfea4827e1618262d1e485e117790af.jpg",
                        "specification_id": "3",
                        "specification_ids": "23",
                        "specification_names": "件",
                        "specification_price": "111.80"
                    }
                ]
            },
            {
                "order_merchants_id": "3",
                "order_no": "201710141056415253686069",
                "merchants_id": "8244",
                "order_actual_price": "428.80",
                "merchants_name": "iphone",
                "orderBeans": [
                    {
                        "goods_id": "3",
                        "goods_num": "3",
                        "goods_name": "七彩山野鸡蛋20枚/30枚",
                        "goods_img": "http://dspx.tstmobile.com/uploads//image/20171012/2dfea4827e1618262d1e485e117790af.jpg",
                        "specification_id": "4",
                        "specification_ids": "5,27",
                        "specification_names": "2500g/箱",
                        "specification_price": "47.80"
                    },
                    {
                        "goods_id": "4",
                        "goods_num": "3",
                        "goods_name": "香玲核桃1500g",
                        "goods_img": "http://dspx.tstmobile.com/uploads//image/20171012/2dfea4827e1618262d1e485e117790af.jpg",
                        "specification_id": "3",
                        "specification_ids": "23",
                        "specification_names": "2000g/箱",
                        "specification_price": "111.80"
                    }
                ]
            },
            {
                "order_merchants_id": "4",
                "order_no": "201710141056414901031236",
                "merchants_id": "8244",
                "order_actual_price": "428.80",
                "merchants_name": "龙举手机旗舰店2",
                "orderBeans": [
                    {
                        "goods_id": "3",
                        "goods_num": "3",
                        "goods_name": "件",
                        "goods_img": "http://dspx.tstmobile.com/uploads//image/20171012/2dfea4827e1618262d1e485e117790af.jpg",
                        "specification_id": "4",
                        "specification_ids": "5,27",
                        "specification_names": "件",
                        "specification_price": "47.80"
                    },
                    {
                        "goods_id": "4",
                        "goods_num": "3",
                        "goods_name": "iphone8",
                        "goods_img": "http://dspx.tstmobile.com/uploads//image/20171012/2dfea4827e1618262d1e485e117790af.jpg",
                        "specification_id": "3",
                        "specification_ids": "23",
                        "specification_names": "件",
                        "specification_price": "111.80"
                    }
                ]
            },
            {
                "order_merchants_id": "1",
                "order_no": "201710141054099028131155",
                "merchants_id": "8244",
                "order_actual_price": "453.80",
                "merchants_name": "龙举手机旗舰店3",
                "orderBeans": [
                    {
                        "goods_id": "3",
                        "goods_num": "3",
                        "goods_name": "iphone7",
                        "goods_img": "http://dspx.tstmobile.com/uploads//image/20171012/2dfea4827e1618262d1e485e117790af.jpg",
                        "specification_id": "4",
                        "specification_ids": "5,27",
                        "specification_names": "件",
                        "specification_price": "47.80"
                    },
                    {
                        "goods_id": "4",
                        "goods_num": "3",
                        "goods_name": "iphone",
                        "goods_img": "http://dspx.tstmobile.com/uploads//image/20171012/2dfea4827e1618262d1e485e117790af.jpg",
                        "specification_id": "3",
                        "specification_ids": "23",
                        "specification_names": "件",
                        "specification_price": "111.80"
                    }
                ]
            },
            {
                "order_merchants_id": "2",
                "order_no": "201710141054093512035949",
                "merchants_id": "8244",
                "order_actual_price": "453.80",
                "merchants_name": "龙举手机旗舰店6",
                "orderBeans": [
                    {
                        "goods_id": "3",
                        "goods_num": "3",
                        "goods_name": "iphonex",
                        "goods_img": "http://dspx.tstmobile.com/uploads//image/20171012/2dfea4827e1618262d1e485e117790af.jpg",
                        "specification_id": "4",
                        "specification_ids": "5,27",
                        "specification_names": "件",
                        "specification_price": "47.80"
                    },
                    {
                        "goods_id": "4",
                        "goods_num": "3",
                        "goods_name": "iphone6",
                        "goods_img": "http://dspx.tstmobile.com/uploads//image/20171012/2dfea4827e1618262d1e485e117790af.jpg",
                        "specification_id": "3",
                        "specification_ids": "23",
                        "specification_names": "件",
                        "specification_price": "111.80"
                    }
                ]
            }
        ]
    }
}

确认订单商品信息(购物车)

请求方式:post            url:/api/Order/queryOrderView

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
car_idsintY购物车car_id逗号隔开

返回数据类型json

{
    "status": "ok",
    "data": {
        "list": [
            {
                "merchants_id": "8243",
                "merchants_name": "龙举手机旗舰店1",
                "merchants_img": "",
                "totalPrice": "8028.00",
                "totalNum": "3",
                "goods": [
                    {
                        "car_id": "26",
                        "specification_id": "0",
                        "goods_id": "39",
                        "goods_name": "phonex",
                        "goods_num": "3",
                        "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                        "specification_names": "",
                        "goods_origin_price": "0.00",
                        "goods_pc_price": "0",
                        "goods_now_price": "2676.00"
                    }
                ]
            },
            {
                "merchants_id": "8244",
                "merchants_name": "龙举手机旗舰店2",
                "merchants_img": "http://dspx.tstmobile.com/uploads/20170926/e0c0e90189deb56ebe35605e3ea0ce47.png",
                "totalPrice": "9428.00",     //店铺小记
                "totalNum": "10",     //商品数量
                "goods": [
                    {
                        "car_id": "14",
                        "specification_id": "1",
                        "goods_id": "1",
                        "goods_name": "手机",
                        "goods_num": "7",
                        "goods_img": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png",
                        "specification_names": "64G,红色",
                        "goods_origin_price": "3555.00",
                        "goods_pc_price": "0",
                        "goods_now_price": "200.00"       //商品价格
                    }
                ]
            }
        ],
        "amount": "17456.00",       //订单总额
        "num": "13"     //订单总数量
    }
}

积分商城模块

积分商品信息列表

请求方式:post            url: /api/Points/goods_index

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
goods_idintY商品id
goods_numintY商品数量
specification_idintY商品规格id

返回数据类型json

{
    status": "ok",
    "data": {
    "user_info": { //用户信息,只有在用户登录的情况下才有返回
    "user_id": "用户ID",
    "user_realname": "用户真实姓名",
    "user_mobile": "用户手机号",
    "user_email": "邮箱",
    "user_type_id": 0,
    "user_level_id": 3,
    "user_active_time": "2016-06-01 15:58:34",
    "user_remark": "",
    "user_name": "用户名",
    "user_sex": 0,
    "user_birthday": "1993-10-03",
    "user_mobile_verify": 1,
    "user_email_verify": 1,
    "user_cash": 0,
    "user_freeze_cash": 0,
    "user_provinceid": 4,
    "user_cityid": 87,
    "user_areaid": 1327,
    "user_area": "山西 长治市 平顺县",
    "user_logo": "http://127.0.0.1/yf_shop/image.php/shop/data/upl
    oad/media/1/1/image/20160729/1469789539540479.jpg", //
    "user_hobby": 0,
    "user_points": -2,
    "user_freeze_points": 0,
    "user_growth": 0,
    "user_statu": 0,
    "user_ip": "::1",
    "user_lastip": "::1",
    "user_regtime": "0000-00-00 00:00:00",
    "user_logintime": "2016-07-29 03:18:34",
    "lastlogintime": "2016-07-28 23:56:30",
    "user_invite": "",
    "user_grade": 3,
    "user_update_date": "0000-00-00 00:00:00",
    "user_drp_id": 0,
    "user_qq": 13122321,
    "user_report": 1,
    "user_buy": 1,
    "user_talk": 0,
    "user_ww": "",
    "user_am": "39,36",
    "id": 1
    },
    "user_resource": { //用户资源信
    息,登录状态下返回
    "user_id": 1, //用户ID
    "user_blog": 22, //
    "user_friend": 2, //
    "user_fan": 2, //
    "user_growth": 2472, //用户积分
    "user_points": 3067676, //用户成长值
    "id": 1 //
    },
    "ava_voucher_num": 10, //可用代金券
    数量
    "points_order_num": 23, //积分订单数"points_cart_num": 0, //积分购物车
    商品数量
    "growth": { //成长值状况
    "grade_growth_start": 2000, //当前等级起
    始成长值
    "grade_growth_end": 10000, //当前等级成
    长值终点
    "next_grade_growth": 7528, //用户距离下
    一等级成长值距离
    "grade_growth_per": 6 //当前等级成
    长进度百分比
    }
}

代金券模板信息列表

请求方式:post            url: /api/Points/voucher_index

请求参数

参数名参数类型描述
uidintYuid
tokenstringYtoken
goods_idintY商品id
goods_numintY商品数量
specification_idintY商品规格id

返回数据类型json

{
    status": "ok",
    "data":{
    "voucher_t_id": "代金券模板ID",
    "voucher_t_title": "代金券模板名称",
    "voucher_t_desc": "代金券描述",
    "shop_class_id": "代金券分类ID",
    "voucher_t_start_date": "代金券模板开始时间",
    "voucher_t_end_date": "代金券模板结束时间",
    "voucher_t_price": "代金券面额",
    "voucher_t_limit": "使用时订单金额限制",
    "shop_id": "店铺ID",
    "shop_name": "店铺名称",
    "voucher_t_creator_id": "创建者ID",
    "voucher_t_state": "代金券模板状态:1-正常,2-过期失效",
    "voucher_t_total": "可发放代金券总数",
    "voucher_t_giveout": "已发放代金券数量",
    "voucher_t_used": "代金券已使用数量",
    "voucher_t_add_date": "代金券添加时间",
    "voucher_t_update_date": "代金券最后更新时间",
    "combo_id": 0,
    "voucher_t_points": "兑换代金券所需积分",
    "voucher_t_eachlimit": "每人限领数量",
    "voucher_t_styleimg": "",
    "voucher_t_customimg": "代金券模板图片",
    "voucher_t_access_method": "领取方式,1-积分兑换,3-免费领取",
    "voucher_t_recommend": "是否推荐,0-未推荐,1-推荐",
    "voucher_t_user_grade_limit": "领取代金券用户等级限制",
    "id": 36,
    "voucher_t_state_label": "是否有效说明:有效、无效",
    "voucher_t_access_method_label": "领取方式说明:免费领取、积分
    兑换",
    "voucher_t_recommend_label": "推荐说明:是、否",
    "voucher_t_end_date_day": "结束日期",
    "voucher_t_cat_name": "代金券分类ID名称"
    }
}

代金券模板信息列表

请求方式:post            url: /api/Points/voucher_index

请求参数

参数名参数类型描述
goods_idintY商品id

返回数据类型json

{
"status": "ok",
"data": {
    "goods_detail": {
    "points_goods_id": "积分商品id",
    "points_goods_name": "积分商品名称",
    "points_goods_price": "积分商品原价",
    "points_goods_points": "兑换所需积分",
    "points_goods_image": "积分商品图片",
    "points_goods_tag": "积分商品标签",
    "points_goods_serial": "礼品编号",
    "points_goods_storage": "礼品库存",
    "points_goods_shelves": "是否上架 1-上架,0-下架",
    "points_goods_recommend": "是否推荐,1-推荐、0-未推荐",
    "points_goods_add_time": "商品添加时间",
    "points_goods_keywords": "关键字",
    "points_goods_description": "描述",
    "points_goods_body": "积分商品图文详情",
    "points_goods_salenum": "销售数量",
    "points_goods_view": "浏览次数",
    "points_goods_limitgrade": "用户等级限制",
    "points_goods_islimit": "是否有兑换数量限制,0-否,1-有",
    "points_goods_limitnum": "限制的兑换数量",
    "points_goods_islimittime": "是否限制兑换时间",
    "points_goods_starttime": "兑换开始时间",
    "points_goods_endtime": "兑换结束时间",
    "points_goods_sort": "积分商品排序",
    "id": 8,
    "sell_state": "销售状态,1-可售、2-不可售"
    "points_goods_limitgrade_label": "用户兑换等级限制说明,如:注册会"
    },
    "hot_point_goods": { //热门兑换积分商品
    "page": 0,
    "total": 1,
    "totalsize": 1,
    "records": 1,
    "items": [
    {
    "points_goods_id": "积分商品id",
    "points_goods_name": "积分商品名称",
    "points_goods_price": "积分商品原价",
    "points_goods_points": "兑换所需积分",
    "points_goods_image": "积分商品图片",
    "points_goods_tag": "积分商品标签",
    "points_goods_serial": "礼品编号",
    "points_goods_storage": "礼品库存",
    "points_goods_shelves": "是否上架 1-上架,0-下架",
    "points_goods_recommend":"是否推荐,1-推荐、0-未推荐",
    "points_goods_add_time": "商品添加时间",
    "points_goods_keywords":"关键字",
    "points_goods_description": "描述",
    "points_goods_body": " "积分商品图文详情",",
    "points_goods_salenum":"销售数量",
    "points_goods_view": 浏览次数",
    "points_goods_limitgrade": "用户等级限制",
    "points_goods_islimit": "是否有兑换数量限制,0-否,1-有",
    "points_goods_limitnum":"限制的兑换数量",
    "points_goods_islimittime": "是否限制兑换时间",
    "points_goods_starttime": "兑换开始时间",
    "points_goods_endtime": "兑换结束时间",
    "points_goods_sort":"积分商品排序",
    "id": 8,
    "points_goods_shelves_label": "是否上架说明:是、否",
    "points_goods_recommend_label": "是否推荐说明:是、否",
    "sell_state":"销售状态,1-可售、2-不可售"
    "user_grade_limit_label": "用户兑换等级限制说明,如:注册会"
    }
....
]
},
"order_record": { //兑换记录
"page": 1,
"total": 5,
"totalsize": 23,
"records": 23,
"items": [
    {
    "points_order_id": "积分商品顶戴ID",
    "points_order_rid": "积分商品订单号",
    "points_buyerid": "兑换者id",
    "points_buyername": "兑换者名称",
    "points_buyeremail": "兑换者邮箱",
    "points_addtime": "订单创建时间",
    "points_paymenttime": "0000-00-00 00:00:00",
    "points_shippingtime": "发货时间",
    "points_shippingcode": "物流单号",
    "points_logistics": "物流公司名称",
    "points_finnshedtime": "订单完成时间",
    "points_allpoints": "礼品总积分",
    "points_orderamount": "兑换订单总金额",
    "points_shippingcharge": 0,
    "points_shippingfee": 0,
    "points_ordermessage": "兑换者留言",
    "points_orderstate": "订单状态、1-下单、2-发货、3-确认收
    货、4-取消",
    "id": 33,
    "points_orderstate_label": "订单状态说明,如:已下单"
    }
    ]
}

代金券列表信息

请求方式:post            url: /api/Points/getVoucherById

请求参数

参数名参数类型描述
listRowsintY每页显示条数
vc_idintY代金券分类
priceintY代金券面额
points_minintY所需积分最小值
points_maxintY所需积分最大值
orderbystringY排序条件,”exchangenumasc”:兑换量增序排序,”exchangenumdesc”:兑

换量降序排序Y,”pointsasc”:所需积分增序排序,”pointsdesc”:所需积分降
序排序
返回数据类型json

{
"status": "OK",
"data": {
"voucher": {
"page": 1,
"total": 1,
"totalsize": 1,
"records": 1,
"items": [
    {
    "voucher_t_id": "代金券模板ID",
    "voucher_t_title": "代金券模板名称",
    "voucher_t_desc": "代金券描述",
    "shop_class_id": "代金券分类ID",
    "voucher_t_start_date": "代金券模板开始时间",
    "voucher_t_end_date": "代金券模板结束时间",
    "voucher_t_price": "代金券面额",
    "voucher_t_limit": "使用时订单金额限制",
    "shop_id": "店铺ID",
    "shop_name": "店铺名称",
    "voucher_t_creator_id": "创建者ID",
    "voucher_t_state": "代金券模板状态:1-正常,2-过期失效",
    "voucher_t_total": "可发放代金券总数",
    "voucher_t_giveout": "已发放代金券数量",
    "voucher_t_used": "代金券已使用数量",
    "voucher_t_add_date": "代金券添加时间",
    "voucher_t_update_date": "代金券最后更新时间",
    "combo_id": 0,
    "voucher_t_points": "兑换代金券所需积分",
    "voucher_t_eachlimit": "每人限领数量",
    "voucher_t_styleimg": "",
    "voucher_t_customimg": "代金券模板图片",
    "voucher_t_access_method": "领取方式,1-积分兑换,3-免费领",
    "voucher_t_recommend": "是否推荐,0-未推荐,1-推荐",
    "voucher_t_user_grade_limit": "领取代金券用户等级限制",
    "id": 36,
    "voucher_t_state_label": "是否有效说明:有效、无效",
    "voucher_t_access_method_label": "领取方式说明:免费领取、
    积分兑换",
    "voucher_t_recommend_label": "推荐说明:是、否",
    "voucher_t_end_date_day": "结束日期",
    "voucher_t_cat_name": "代金券分类ID名称"
    }
    ......
    ]
    },
    "shop_cat": { //店铺分类,即代金券分类
    "2": {
    "shop_class_id": "店铺分类ID",
    "shop_class_name": "店铺分类名称",
    "shop_class_deposit": "保证金数额(元)",
    "shop_class_displayorder": "店铺分类排序",
    "id": 2
    },
    .......
    },
    "price_range": {
    "30": {
    "voucher_price_id": "代金券面额ID",
    "voucher_price": "代金券面额",
    "voucher_price_describe": "代金券面额描述",
    "voucher_defaultpoints": "代金券默认的兑换所需积分",
    "id": 30
    }
    ......
    },
        "user_info": { //用户信息,只有在用户登录的情况下才有返回
        "user_id": "用户ID",
        "user_realname": "用户真实姓名",
        "user_mobile": "用户手机号",
        "user_email": "邮箱",
        "user_type_id": 0,
        "user_level_id": 3,
        "user_active_time": "2016-06-01 15:58:34",
        "user_remark": "",
        "user_name": "用户名",
        "user_sex": 0,
        "user_birthday": "1993-10-03",
        "user_mobile_verify": 1,
        "user_email_verify": 1,
        "user_cash": 0,
        "user_freeze_cash": 0,
        "user_provinceid": 4,
        "user_cityid": 87,
        "user_areaid": 1327,
        "user_area": "山西 长治市 平顺县",
        "user_logo": "http://127.0.0.1/yf_shop/image.php/shop/data/
        upload/media/1/1/image/20160729/1469789539540479.jpg", //
        "user_hobby": 0,
        "user_points": -2,
        "user_freeze_points": 0,
        "user_growth": 0,
        "user_statu": 0,
        "user_ip": "::1",
        "user_lastip": "::1",
        "user_regtime": "0000-00-00 00:00:00",
        "user_logintime": "2016-07-29 03:18:34",
        "lastlogintime": "2016-07-28 23:56:30",
        "user_invite": "",
        "user_grade": 3,
        "user_update_date": "0000-00-00 00:00:00",
        "user_drp_id": 0,
        "user_qq": 13122321,
        "user_report": 1,
        "user_buy": 1,
        "user_talk": 0,
        "user_ww": "",
        "user_am": "39,36",
        "id": 1
        },
        "user_resource": { //用户
        资源信息,登录状态下返回
        "user_id": 1, //用户I
        D
        "user_blog": 22, //
        "user_friend": 2, //
        "user_fan": 2, //
        "user_growth": 2472, //用户
        积分
        "user_points": 3067676, //用户
        成长值
        "id": 1 //
        },
        "ava_voucher_num": 10, //可用
        代金券数量
        "points_order_num": 23, //积分
        订单数量
        "points_cart_num": 0, //积分
        购物车商品数量
        "growth": { //成长
        值状况
        "grade_growth_start": 2000, //当前
        等级起始成长值
        "grade_growth_end": 10000, //当前
        等级成长值终点
        "next_grade_growth": 7528, //用户
        距离下一等级成长值距离
        "grade_growth_per": 6 //当前
        等级成长进度百分比
        },
    }
}

领取代金券

请求方式:post            url: /api/Points/receiveVouche

请求参数

参数名参数类型描述
uidintYuid
tokenintYtoken
vc_idintY代金券分类

返回数据类型json

{
"status": "ok",
"data": {
    "voucher_t_id": 36,
    "voucher_t_title": 424,
    "voucher_t_desc": 23,
    "shop_class_id": 2,
    "voucher_t_start_date": "2016-07-21 16:12:47",
    "voucher_t_end_date": "2016-07-31 23:59:59",
    "voucher_t_price": 100,
    "voucher_t_limit": 22222,
    "shop_id": 1,
    "shop_name": "阿飞达lalal",
    "voucher_t_creator_id": 1,
    "voucher_t_state": 1,
    "voucher_t_total": 1111,
    "voucher_t_giveout": 10,
    "voucher_t_used": 0,
    "voucher_t_add_date": "2016-07-21 16:12:47",
    "voucher_t_update_date": "2016-07-27 23:45:23",
    "combo_id": 0,
    "voucher_t_points": 0,
    "voucher_t_eachlimit": 10,
    "voucher_t_styleimg": "",
    "voucher_t_customimg": "http://127.0.0.1/yf_shop/image.php/shop/da
    ta/upload/media/1/1/image/20160721/1469088766457599.jpg",
    "voucher_t_access_method": 3,
    "voucher_t_recommend": 1,
    "voucher_t_user_grade_limit": 1,
    "id": 36
    }
}

商城团购模块

团购商品信息列表

请求方式:post            url: api/Group/Buyindex

请求参数

参数名参数类型描述
typeintY团购类型,1-线上团,2-虚拟团
stateintY团购状态 1:审核中,2:正常,3:结束,4:审核失败,5:管理员关闭,默认:所有
key string 团购名称
pageintY页数
PagesizeintY每页显示条数

返回数据类型json

{
    "status": "ok",
        "data": {
        "goods": {
        "physical": { //线上团
        "page": 0,
        "total": 1,
        "totalsize": 1,
        "records": 1,
        "items": [
        {
        "groupbuy_id": "团购商品ID",
        "groupbuy_name": "团购名称",
        "groupbuy_starttime": "团购开始时间",
        "groupbuy_endtime": "团购结束时间",
        "goods_id": "商品goods_id",
        "common_id": "商品common_id",
        "goods_name": "商品名称",
        "shop_id": "店铺ID",
        "shop_name": "店铺名称",
        "goods_price": "商品价格",
        "groupbuy_price": "团购价",
        "groupbuy_rebate": 0,
        "groupbuy_virtual_quantity": "商品虚拟团购数量",
        "groupbuy_upper_limit": "购买上线",
        "groupbuy_buyer_count": "已购买者数量",
        "groupbuy_buy_quantity": "团购商品销售数量",
        "groupbuy_intro": "团购介绍",
        "groupbuy_state": "团购状态,1-等待审核,2-审核通过,3-
        结束,4-审核失败,5-管理员关闭",
        "groupbuy_recommend": "是否推荐,0-否,1-是",
        "groupbuy_type": "团购商品类型,1-线上团,2-虚拟团",
        "groupbuy_views": "浏览次数",
        "groupbuy_cat_id": "分类ID",
        "groupbuy_scat_id": "子分类ID",
        "groupbuy_city_id": "团购城市ID",
        "groupbuy_area_id": "团购区域ID",
        "groupbuy_image": "团购图片",
        "groupbuy_image_rec": "团购推荐位图片",
        "groupbuy_remark": "团购副标题",
        "id": 251,
        "groupbuy_recommend_label": "是否推荐说明:是、否",
        "groupbuy_state_label": "状态描述:正常",
        "groupbuy_type_label": "团购类型描述:实物",
        "reduce": "折扣金额",
        "rate": "折扣比例"
        }
        ......
        ]
        },
        "virtual": {
        "page": 0,
        "total": 0,
        "totalsize": 0,
        "records": 0,
        "items": [
        {
        "groupbuy_id": "团购商品ID",
        "groupbuy_name": "团购名称",
        "groupbuy_starttime": "团购开始时间",
        "groupbuy_endtime": "团购结束时间",
        "goods_id": "商品goods_id",
        "common_id": "商品common_id",
        "goods_name": "商品名称",
        "shop_id": "店铺ID",
        "shop_name": "店铺名称",
        "goods_price": "商品价格",
        "groupbuy_price": "团购价",
        "groupbuy_rebate": 0,
        "groupbuy_virtual_quantity": "商品虚拟团购数量",
        "groupbuy_upper_limit": "购买上线",
        "groupbuy_buyer_count": "已购买者数量",
        "groupbuy_buy_quantity": "团购商品销售数量",
        "groupbuy_intro": "团购介绍",
        "groupbuy_state": "团购状态,1-等待审核,2-审核通过,3-
        结束,4-审核失败,5-管理员关闭",
        "groupbuy_recommend": "是否推荐,0-否,1-是",
        "groupbuy_type": "团购商品类型,1-线上团,2-虚拟团",
        "groupbuy_views": "浏览次数",
        "groupbuy_cat_id": "分类ID",
        "groupbuy_scat_id": "子分类ID",
        "groupbuy_city_id": "团购城市ID",
        "groupbuy_area_id": "团购区域ID",
        "groupbuy_image": "团购图片",
        "groupbuy_image_rec": "团购推荐位图片",
        "groupbuy_remark": "团购副标题",
        "id": 251,
        "groupbuy_recommend_label": "是否推荐说明:是、否",
        "groupbuy_state_label": "状态描述:正常",
        "groupbuy_type_label": "团购类型描述:虚拟商品",
        "reduce": "折扣金额",
        "rate": "折扣比例"
        }
        ......
        ]
        }
        },
        "cat": {
        "physical": { //线上团购分类
        "12": {
        "groupbuy_cat_id": "分类ID",
        "groupbuy_cat_name": "分类名称",
        "groupbuy_cat_parent_id": "父ID",
        "groupbuy_cat_sort": "排序",
        "groupbuy_cat_deep": 0,
        "groupbuy_cat_type": "分类类型,1-线上团分类,2-虚拟团分类",
        "id": 12,
        "groupbuy_cat_type_label": "实物",
        "is_leaf": true
        },
        .......
        },
        "virtual": { //虚拟团购分类
        "24": {
        "groupbuy_cat_id": "分类ID",
        "groupbuy_cat_name": "分类名称",
        "groupbuy_cat_parent_id": "父ID",
        "groupbuy_cat_sort": "排序",
        "groupbuy_cat_deep": 0,
        "groupbuy_cat_type": "分类类型,1-线上团分类,2-虚拟团分类",
        "id": 12,
        "groupbuy_cat_type_label": "虚拟商品",
        "is_leaf": true
        },
        .....
        }
        },
        "area": { //虚拟团购地区
        "page": 0,
        "total": 2,
        "totalsize": 13,
        "records": 13,
        "items": [
        {
        "groupbuy_area_id": "团购地区ID",
        "groupbuy_area_name": "团购地区名称",
        "groupbuy_area_parent_id": "地区父ID",
        "groupbuy_area_sort": "排序",
        "groupbuy_area_deep": 0,
        "id": 15
        },
        .......
        ]
        }
    }
}

线上团列表

请求方式:post            url: api/GroupBuy/groupBuyList

请求参数

参数名参数类型描述
statestringY团购状态,”underway”:”即将开始”,”history”:”已经结束”,默认为正在进行
cat_idintY分类ID
scat_idintY二级分类ID
priceintY团购价格区间ID
pageintY页数
PagesizeintY每页显示条数
orderbystringY

注:团购商品排序,”default”:默认排序,”priceasc”:按照价格增序排序,”pricedesc”:按照价格降序排序,”ratease”:按照折扣增序排
序,”ratedesc”:”按照折扣降序排序”,”saleasc”:按照销量增序排
序,”saledesc”:”按照销量降序排序”

返回数据类型json

{
"status": "ok",
"msg": "success",
"data": {
"price_range": { //团购价格区间
"4": {
"range_id": "价格区间ID",
"range_name": "价格区间名称",
"range_start": "起始价格",
"range_end": "结束价格",
"id": 4
},
.......
},
"groupbuy_goods": {//团购商品
"page": 1,
"total": 1,
"totalsize": 1,
"records": 1,
"items": [
{
"groupbuy_id": "团购商品ID",
"groupbuy_name": "团购名称",
    "groupbuy_starttime": "团购开始时间",
    "groupbuy_endtime": "团购结束时间",
    "goods_id": "商品goods_id",
    "common_id": "商品common_id",
    "goods_name": "商品名称",
    "shop_id": "店铺ID",
    "shop_name": "店铺名称",
    "goods_price": "商品价格",
    "groupbuy_price": "团购价",
    "groupbuy_rebate": 0,
    "groupbuy_virtual_quantity": "商品虚拟团购数量",
    "groupbuy_upper_limit": "购买上线",
    "groupbuy_buyer_count": "已购买者数量",
    "groupbuy_buy_quantity": "团购商品销售数量",
    "groupbuy_intro": "团购介绍",
    "groupbuy_state": "团购状态,1-等待审核,2-审核通过,3-结
    束,4-审核失败,5-管理员关闭",
    "groupbuy_recommend": "是否推荐,0-否,1-是",
    "groupbuy_type": "团购商品类型,1-线上团,2-虚拟团",
    "groupbuy_views": "浏览次数",
    "groupbuy_cat_id": "分类ID",
    "groupbuy_scat_id": "子分类ID",
    "groupbuy_city_id": "团购城市ID",
    "groupbuy_area_id": "团购区域ID",
    "groupbuy_image": "团购图片",
    "groupbuy_image_rec": "团购推荐位图片",
    "groupbuy_remark": "团购副标题",
    "id": 251,
    "groupbuy_recommend_label": "是否推荐说明:是、否",
    "groupbuy_state_label": "状态描述:正常",
    "groupbuy_type_label": "团购类型描述:虚拟商品",
    "reduce": "折扣金额",
    "rate": "折扣比例"
    }
    ]
    },
    "groupbuy_cat": {
        "12": {
        "groupbuy_cat_id": "分类ID",
        "groupbuy_cat_name": "分类名称",
        "groupbuy_cat_parent_id": "父级分类ID",
        "groupbuy_cat_sort": 0,
        "groupbuy_cat_deep": 0,
        "groupbuy_cat_type": 1,
        "id": 12,
        "groupbuy_cat_type_label": "分类描述,实物",
        "is_leaf": true,
        "scat": {
        "33": {
        "groupbuy_cat_id": "二级分类ID",
        "groupbuy_cat_name": "二级分类名称",
        "groupbuy_cat_parent_id": "父ID",
        "groupbuy_cat_sort": "排序",
        "groupbuy_cat_deep": 0,
        "groupbuy_cat_type": 1,
        "id": 33,
        "groupbuy_cat_type_label": "分类说明:如:实物",
        "is_leaf": false
        },
    }
}

团购商品详情

请求方式:post            url: api/GroupBuy/goods_detail

请求参数

参数名参数类型描述
idintY团购商品ID

返回数据类型json

{

"status": ok,
"data": {
"groupbuy_detail": {
    "groupbuy_id": "团购商品ID",
    "groupbuy_name": "团购商品名称",
    "groupbuy_starttime": "开始时间",
    "groupbuy_endtime": "结束时间",
    "goods_id": "商品ID",
    "common_id": "商品common_id",
    "goods_name": "商品名称",
    "shop_id": "店铺ID",
    "shop_name": "店铺名称",
    "goods_price": "商品价格",
    "groupbuy_price": ""团购价,
    "groupbuy_rebate": 0,
    "groupbuy_virtual_quantity": "虚拟销售数量",
    "groupbuy_upper_limit": "购买上限",
    "groupbuy_buyer_count": "买家数量",
    "groupbuy_buy_quantity": "购买数量",
    "groupbuy_intro": "团购图文详情介绍",
    "groupbuy_state": "团购状态,1",
    "groupbuy_recommend": "是否推荐,0-否,1-是",
    "groupbuy_type": "团购商品类型,1-线上团,2-虚拟团",
    "groupbuy_views": "浏览次数",
    "groupbuy_cat_id": "分类ID",
    "groupbuy_scat_id": "子分类ID",
    "groupbuy_city_id": "团购城市ID",
    "groupbuy_area_id": "团购区域ID",
    "groupbuy_image": "团购图片",
    "groupbuy_image_rec": "团购推荐位图片",
    "groupbuy_remark": "团购副标题",
    "id": 252,
    "recommend_label": "是",
    "groupbuy_state_label": "状态描述:正常",
    "reduce": "折扣金额",
    "rate": "折扣比例"
},
"cat": {
    "1": {
    "id": 24,
    "name": "拼团嗨歌"
    }
    },
    "hot_groupbuy": {
    "page": 0,
    "total": 1,
    "totalsize": 1,
    "records": 1,
    "items": [
    {
        "groupbuy_id": 252,
        "groupbuy_name": "测试虚拟团购",
        "groupbuy_starttime": "2016-07-30 02:43:00",
        "groupbuy_endtime": "2016-08-24 21:43:00",
        "goods_id": 177,
        "common_id": 96,
        "goods_name": "中国电信 3G号卡 乐享3G上网版69元月租赠798元话
        费!",
        "shop_id": 1,
        "shop_name": "阿飞达lala",
        "goods_price": 100,
        "groupbuy_price": 30,
        "groupbuy_rebate": 0,
        "groupbuy_virtual_quantity": 300,
        "groupbuy_upper_limit": 2,
        "groupbuy_buyer_count": 0,
        "groupbuy_buy_quantity": 0,
        "groupbuy_intro": "团购图文详情介绍",
        "groupbuy_state": "团购状态,1-等待审核,2-审核通过,3-结
        束,4-审核失败,5-管理员关闭",
        "groupbuy_recommend": "是否推荐,0-否,1-是",
        "groupbuy_type": 2,
        "groupbuy_views": 4,
        "groupbuy_cat_id": 24,
        "groupbuy_scat_id": 0,
        "groupbuy_city_id": 0,
        "groupbuy_area_id": 25,
        "groupbuy_image": "http://www.yf_shop.com/yf_shop/imag
        e.php/shop/data/upload/media/1/1/image/20160730/1469889862171309.jpg",
        "groupbuy_image_rec": "http://www.yf_shop.com/yf_shop/i
        mage.php/shop/data/upload/media/1/1/image/20160730/1469889884102015.jpg",
        "groupbuy_remark": "测试虚拟团购",
        "id": 252,
        "groupbuy_recommend_label": "是",
        "groupbuy_state_label": "状态描述:正常",
        "groupbuy_type_label": "虚拟商品",
        "reduce": "折扣金额",
        "rate": "折扣比例"
        }
        ]
        },
        "area": {
            "page": 0,
            "total": 2,
            "totalsize": 13,
            "records": 13,
            "items": [
        {
            "groupbuy_area_id": 15,
            "groupbuy_area_name": "上海",
            "groupbuy_area_parent_id": 0,
            "groupbuy_area_sort": 0,
            "groupbuy_area_deep": 0,
            "id": 15
            },
        ]
    },
    "shop": {
        "constract": {
            "21": {
            "contract_id": 21,
            "contract_type_id": 1,
            "shop_id": 1,
            "shop_name": "阿飞达lalal",
            "contract_type_name": "七天退货",
            "contract_state": 1,
            "contract_use_state": 1,
            "contract_cash": 0,
            "contract_log_id": 53,
            "id": 21
            },
            "22": {
            "contract_id": 22,
            "contract_type_id": 3,
            "shop_id": 1,
            "shop_name": "阿飞达lalal",
            "contract_type_name": "破损寄补",
            "contract_state": 1,
            "contract_use_state": 1,
            "contract_cash": 0,
            "contract_log_id": 56,
            "id": 22
            },
            "23": {
            "contract_id": 23,
            "contract_type_id": 4,
            "shop_id": 1,
            "shop_name": "阿飞达lalal",
            "contract_type_name": "极速物流",
            "contract_state": 1,
            "contract_use_state": 1,
            "contract_cash": 0,
            "contract_log_id": 57,
            "id": 23
            },
            "24": {
            "contract_id": 24,
            "contract_type_id": 2,
            "shop_id": 1,
            "shop_name": "阿飞达lalal",
            "contract_type_name": "品质承诺",
            "contract_state": 1,
            "contract_use_state": 1,
            "contract_cash":
            "id": 24
            }
        }
    }
}
  • 0
    点赞
  • 0
    评论
  • 0
    收藏
  • 打赏
    打赏
  • 扫一扫,分享海报

参与评论
请先登录 后发表评论~
©️2021 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页

打赏作者

MaJson

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值