Home - 新零售设备-小程序(0730) 登录  
最后修改者: root  2018-08-01 17:21:08 

商品详情(0730)

编号  :  013

POST - mobile/index.php?act=member_vending_machine&op=goods_detail
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
goods_id int Y
device_id int Y 设备id (不是设备编号,短的只能是数字那个)
返回值
{
    "code": 200,
    "datas": {
        "storage": "18",
        "goods_id": "104498",
        "goods_name": "娃哈哈苏打水350ml",
        "gc_id": "1374",
        "goods_price": "3.00",
        "goods_image": "http://local.master_dev0730.com/data/upload/shop/common/default_goods_image_360.gif",
        "store_id": "8"
    }
}
最后修改者: root  2018-07-09 17:46:50 

查看商品分类(0730)

编号  :  012

POST - mobile/index.php?act=member_vending_machine&op=view_machine_goods_class
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
device_id int Y 设备id
返回值
{
    "code": 200,
    "datas": [
        {
            "gc_id": "1361",
            "gc_name": "whj数据统计分类1"
        },
        {
            "gc_id": "1374",
            "gc_name": "三级分类"
        }
    ]
}
最后修改者: root  2018-07-09 17:45:25 

查看商品列表(0730)

编号  :  011

POST - mobile/index.php?act=member_vending_machine&op=view_machine_goods
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
device_id int Y 设备id
gc_id int Y 分类id
返回值
{
    "code": 200,
    "datas": [
        {
            "storage": "18",
            "goods_id": "104498",
            "goods_name": "娃哈哈苏打水350ml",
            "gc_id": "1374",
            "goods_price": "3.00",
            "goods_image": "http://local.master_dev0730.com/data/upload/shop/common/default_goods_image_360.gif",
            "store_id": "8"
        },
        {
            "storage": "1",
            "goods_id": "104503",
            "goods_name": "统一泡面桶装牛肉面",
            "gc_id": "1374",
            "goods_price": "4.00",
            "goods_image": "http://local.master_dev0730.com/data/upload/shop/common/default_goods_image_360.gif",
            "store_id": "8"
        },
        {
            "storage": "1",
            "goods_id": "104507",
            "goods_name": "水果a",
            "gc_id": "1374",
            "goods_price": "0.01",
            "goods_image": "http://local.master_dev0730.com/data/upload/shop/common/default_goods_image_360.gif",
            "store_id": "8"
        }
    ]
}
最后修改者: root  2018-07-09 17:43:35 

售卖机收藏(0730)

编号  :  010

POST - mobile/index.php?act=member_vending_machine&op=add_collect
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
device_id int Y
返回值
{
    "code": 200,
    "datas": "已收藏"
}
最后修改者: root  2018-07-23 15:01:32 

售卖机列表(0730)

编号  :  009

POST - mobile/index.php?act=member_vending_machine&op=vending_machine_list
is_collect:是否收藏:0否1是
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
city_id int Y 城市id
返回值
{
    "code": 200,
    "datas": [
        {
            "id": "26",
            "device_no": "0123456789222222",
            "device_name": "",
            "decive_city_id": "390",
            "online_state": "1",
            "device_state": "2",
            "store_id": "0",
            "is_lock": "0",
            "is_collect": 0
        },
        {
            "id": "1",
            "device_no": "000001",
            "device_name": "售卖柜0001",
            "decive_city_id": "385",
            "online_state": "1",
            "device_state": "1",
            "store_id": "0",
            "is_lock": "0",
            "is_collect": 0
        }
    ]
}
最后修改者: root  2018-06-11 11:31:03 

设备状态控制

编号  :  008

POST - mobile/index.php?act=seller_orange_device&op=device_state_control
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
device_no string Y
device_state int Y '设备状态 0 停用 1 启用
返回值
{
    "code": 200,
    "msg": 1
}
最后修改者: root  2018-05-28 16:30:46 

商家登录--添加权限

编号  :  007

POST - mobile/index.php?act=seller_index&op=seller_login
请求参数
参数名 参数类型 必传 缺省值 描述
seller_name string Y
password string Y
返回值
{
    "code": 200,
    "key": "ab91ef2f08c5eda72bd7806be30d8706",
    "store_id": "8",
    "shop_scope": "0,2,1",
    "store_name": "mmm",
    "member_avatar": "http://local.master_dev.com/data/upload/shop/common/default_user_portrait.gif"
}
备注
shop_scope 
0表示电商
1表示售卖机
2表示橙汁机
最后修改者: root  2018-05-28 15:59:04 

橙汁机月账单

编号  :  006

POST - mobile/index.php?act=seller_orange_data&op=month_operation_report
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
time string Y
返回值
{
    "code": 200,
    "data": {
        "predeposit_order_amount": 0,
        "wxpay_order_amount": 0,
        "alipay_order_amount": 0,
        "order_sum": 0,
        "order_amount": 0,
        "device_top5": [
            {
                "mobile_imei": "1",
                "order_sum": 0,
                "order_amount": 0,
                "device_id": "194",
                "device_no": "1",
                "device_name": "ddd222"
            },
            {
                "mobile_imei": "330011",
                "order_sum": 0,
                "order_amount": 0,
                "device_id": "195",
                "device_no": "330011",
                "device_name": "陈小妹儿"
            }
        ]
    }
}
最后修改者: root  2018-05-28 15:57:56 

橙汁机运营报告--销售报表

编号  :  005

GET - mobile/index.php?act=seller_orange_data&op=daily_operation_report
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
time string Y
返回值
{
    "code": 200,
    "device_count": 2,
    "remain_machine_low": 0,
    "suggest_procurement_num": 0,
    "networks_offline": 2,
    "device_stop": 0,
    "today": {
        "predeposit": 0,
        "wxpaywap": 0,
        "wxpay": 0,
        "alipay": 0,
        "order_sum": 0,
        "goods_num": 0,
        "order_amount": 0,
        "max_device": {
            "id": null,
            "device_name": null,
            "device_no": null,
            "order_sum": null,
            "goods_num": null
        },
        "min_device_num": 2
    },
    "yesterday": {
        "predeposit": 0,
        "wxpaywap": 0,
        "wxpay": 0,
        "alipay": 0,
        "order_sum": 0,
        "goods_num": 0,
        "order_amount": 0,
        "max_device": {
            "id": null,
            "device_name": null,
            "device_no": null,
            "order_sum": null,
            "goods_num": null
        },
        "min_device_num": 2
    },
    "month": {
        "predeposit": 0,
        "wxpaywap": 0,
        "wxpay": 0,
        "alipay": 0,
        "order_sum": 0,
        "goods_num": 0,
        "order_amount": 0,
        "max_device": {
            "id": null,
            "device_name": null,
            "device_no": null,
            "order_sum": null,
            "goods_num": null
        },
        "min_device_num": 2
    }
}
最后修改者: root  2018-05-28 10:11:26 

橙汁机订单列表

编号  :  004

POST - mobile/index.php?act=seller_orange_device&op=device_order_list
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
time string Y
返回值
{
    "code": 200,
    "data_list": [
        {
            "day": "2017-08-26",
            "order_id": "187112",
            "order_amount": "0.01",
            "order_state": "40",
            "payment_code": null,
            "payment_time": "1503715958",
            "mobile_imei": "12345678",
            "device_no": "12345678",
            "device_id": null,
            "device_name": null,
            "goods_list": [
                {
                    "goods_id": "0",
                    "goods_name": "橙汁",
                    "goods_image": "http://local.master_dev.com/data/upload/shop/common/default_goods_image_240.gif",
                    "goods_num": "0"
                }
            ],
            "goods_num": "0"
        }
    ]
}
最后修改者: root  2018-05-26 15:29:37 

橙汁机设备设置

编号  :  003

POST - mobile/index.php?act=seller_orange_device&op=device_control
状态提交或设置提交
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
device_no int Y
device_state int Y
device_name string Y
latitudes string Y
longitudes string Y
operations_manager string Y
mobile_info int Y
device_position string Y
ali_price int Y
wx_price int Y
gsh_price int Y
返回值
1
最后修改者: root  2018-05-26 14:31:58 

橙汁机设备详情

编号  :  002

POST - mobile/index.php?act=seller_orange_device&op=device_detail
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
device_no int Y
返回值
{
    "code": 200,
    "device_info": {
        "id": "195",
        "device_no": "330011",
        "device_state": "1",
        "device_name": "陈小妹儿",
        "latitudes": "0.00000000000",
        "longitudes": "0.00000000000",
        "operations_manager": "cs1",
        "mobile_info": "18202818606",
        "device_position": "111222333"
    }
}
最后修改者: root  2018-06-11 10:49:00 

橙汁机设备列表

编号  :  001

POST - mobile/index.php?act=seller_orange_device&op=device_list
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
online_state int Y 在线状态
device_state int Y 设备状态
cup_remain int Y 余量
device_abnormal_type string Y 异常
返回值
{
    "code": 200,
    "data_list": [
        {
            "id": "195",
            "device_no": "330011",
            "device_name": "陈小妹儿",
            "device_position": "111222333",
            "device_state": "1",
            "online_state": "0",
            "cup_remain": "0",
            "device_abnormal_type": "00"
        },
        {
            "id": "194",
            "device_no": "1",
            "device_name": "ddd222",
            "device_position": "2220001",
            "device_state": "1",
            "online_state": "0",
            "cup_remain": "0",//剩余杯子
            "device_abnormal_type": "00"//异常 00表示无异常
        }
    ],
    "stat_device": {
        "device_abnormal_num": 2,//异常数
        "stop": 0,
        "offline": 2,
        "cup_remain": 0 剩余杯子数
    }
}
备注
online_state  '在线状态 0 离线 1 在线',
device_state  '设备状态 0 停用 1 启用 2 锁定',
cup_remain : 0 余量
device_abnormal_type : -1 异常