@binbins
2020-09-04T03:21:04.000000Z
字数 9639
阅读 245
接口
在此输入正文
(1)获取用户信息
(2)获取店铺信息
(3)获取菜品分类
http://test.xxx.com/offstore/api/mall.php?c=addDishesClassify
merchant_id=107&merchant_type=0&token=5876526971042201958
(4)新增菜品规格
http://test.xxx.com/offstore/api/mall.php?c=new/addModifySku
data="[{"sku_spell":false,"sku_name":"大份","sku_price":"4000"},{"sku_spell":false,"sku_name":"小份","sku_price":"3500"}]"&sku_title=%E4%BB%BD%E9%87%8F&token=5876526971042201958&type=1
(5)获取菜品规格
http://test.xxx.com/offstore/api/mall.php?c=new/addModifySku
sku_id=260&token=5876526971042201958&type=3
(6)新增菜品
http://test.xxx.com/offstore/api/mall.php?c=new/addModifyDishes
dishes_classify_id=69&dishes_count=0&dishes_desc=%E5%95%86%E5%93%81%E6%8F%8F%E8%BF%B0&dishes_limit=0&dishes_name=%E5%B0%8F%E7%9B%98%E9%B8%A1&dishes_price=2800&dishes_url=/offstore/order/20200904/2020090410461787783_1599187577.jpeg&sku_id=260&token=5876526971042201958
(7)获取菜品列表
(8)编辑单个菜品
http://test.xxx.com/offstore/api/mall.php?c=new/addModifyDishes
attributes_id=0&dishes_classify_id=69&dishes_count=0&dishes_desc=%E5%95%86%E5%93%81%E6%8F%8F%E8%BF%B0%20%E7%BC%96%E8%BE%91&dishes_id=68&dishes_limit=0&dishes_name=%E5%B0%8F%E7%9B%98%E9%B8%A1&dishes_price=2800&dishes_url=/offstore/order/20200904/2020090410461787783_1599187577.jpeg&sku_id=260&token=5876526971042201958
(9)添加菜品分类
http://test.xxx.com/offstore/api/mall.php?c=addDishesClassify
dishes_classify_name=%E5%BF%AB%E4%B9%90&merchant_id=107&merchant_type=2&token=5876526971042201958
(10)下架菜品
http://test.xxx.com/offstore/api/mall.php?c=offDishes
dishes_id=58&token=5876526971042201958
(11)获取当前桌号
http://test.xxx.com/offstore/api/mall.php?c=new/seatClassifyList
device=dda117b3fa61f41c17291c68ee34a539&token=5876526971042201958
(12)获取桌号所在的区域列表
http://test.xxx.com/offstore/api/mall.php?c=new/getRegionList
token=5876526971042201958
(13)新增区域
http://test.xxx.com/offstore/api/mall.php?c=new/addModifyRegion
classify_name=3floor&token=5876526971042201958
(14)新增桌号
http://test.xxx.com/offstore/api/mall.php?c=new/addModifySeat
classify_id=169&max_people=5&min_people=3®ion_name=good%20room®ion_number=666&token=5876526971042201958&type=2&type_of=1
(15)桌号详情
http://test.xxx.com/offstore/api/mall.php?c=new/addModifySeat
region_id=176&token=5876526971042201958&type_of=3
(16)编辑桌号
http://test.xxx.com/offstore/api/mall.php?c=new/addModifySeat
classify_id=169&max_people=5&min_people=3®ion_id=176®ion_name=good%20room®ion_number=667&token=5876526971042201958&type=3&type_of=2
(17)营销活动列表
http://test.xxx.com/offstore/api/mall.php?c=merchantActivityList
merchant_id=107&token=5876526971042201958
返回结果1
{"success": true,"msg": "\u83b7\u53d6\u7528\u6237\u4fe1\u606f\u6210\u529f","message": "\u83b7\u53d6\u7528\u6237\u4fe1\u606f\u6210\u529f","cmd": "to_my","data": {"name": "\u5f90\u79bb\u6cfd\u827a","sex": "","age": "0","referrer": "8888888888810001","phone": "18502519698","coupon": "0","cash": "0","rank": "0","card_index": "0","photo": "\/offstore\/photo\/5.png","pay_password": false,"merchant_id": "107","agent_id": "0","supplier_id": "0","login_password": false,"referrer_phone": "****","bank_status": -3,"partner": 0,"is_merchant": 1,"partner_status": 0},"session": "ra505qfdn70q97bn4s3i8m4d03"}
返回结果2
{"success": true,"msg": "\u5546\u5bb6\u8d44\u6599\u83b7\u53d6~\uff01","message": "\u5546\u5bb6\u8d44\u6599\u83b7\u53d6~\uff01","cmd": "hint","data": {"consumer_id": "87652697104220","merchant_id": "107","merchant_name": "\u54c8\u54c8","merchant_tel": "18502819698","merchant_cash": "0","total_extract_cash": "0","check_status": "1","is_work_time": "1","logo": "\/offstore\/order\/20200815\/2020081511241141472_1597461851.jpg","today_revenue": 0,"month_revenue": 0,"sum_revenue": 0,"warn": "","message": "\u5e7f\u5927\u5546\u5bb6\u4f60\u4eec\u597d","extract_cash": 0,"receive_order": 0,"agent_status": "-2"},"session": "ra505qfdn70q97bn4s3i8m4d03"}
返回结果3
{"success": true,"msg": "\u83b7\u53d6\u5206\u7c7b\u5217\u8868\u6210\u529f~\uff01","message": "\u83b7\u53d6\u5206\u7c7b\u5217\u8868\u6210\u529f~\uff01","cmd": "hint","data": {"list": [{"dishes_classify_id": "68","dishes_classify_name": "\u4e16\u754c\u4e0a","dishes_merchant_id": "107","dishes_del": "0","del_time": "0"}, {"dishes_classify_id": "69","dishes_classify_name": "\u563f\u563f","dishes_merchant_id": "107","dishes_del": "0","del_time": "0"}, {"dishes_classify_id": "70","dishes_classify_name": "\u897f\u7ea2\u67ff\u4e0d\u4f1a","dishes_merchant_id": "107","dishes_del": "0","del_time": "0"}, {"dishes_classify_id": "71","dishes_classify_name": "\u831c\u831c","dishes_merchant_id": "107","dishes_del": "0","del_time": "0"}]},"session": "ra505qfdn70q97bn4s3i8m4d03"}
返回结果4
{"success": true,"msg": "\u6210\u529f","message": "\u6210\u529f","cmd": "hint","data": {"sku_id": 260},"session": "ra505qfdn70q97bn4s3i8m4d03"}
返回结果5
{"success": true,"msg": "\u89c4\u683c\u53cd\u663e","message": "\u89c4\u683c\u53cd\u663e","cmd": "hint","data": {"sku_id": "260","sku_title": "\u4efd\u91cf","sku": [{"sku_son_id": "261","sku_name": "\u5927\u4efd","sku_price": "4000","sku_spell": "0"}, {"sku_son_id": "262","sku_name": "\u5c0f\u4efd","sku_price": "3500","sku_spell": "0"}]},"session": "ra505qfdn70q97bn4s3i8m4d03"}
返回结果6
dishes_classify_id=69&dishes_count=0&dishes_desc=%E5%95%86%E5%93%81%E6%8F%8F%E8%BF%B0&dishes_limit=0&dishes_name=%E5%B0%8F%E7%9B%98%E9%B8%A1&dishes_price=2800&dishes_url=/offstore/order/20200904/2020090410461787783_1599187577.jpeg&sku_id=260&token=5876526971042201958
返回结果7
{"success": true,"msg": "\u83b7\u53d6\u5217\u8868\u6210\u529f~\uff01","message": "\u83b7\u53d6\u5217\u8868\u6210\u529f~\uff01","cmd": "hint","data": {"list": [{"dishes_classify_id": "68","dishes_classify_name": "\u4e16\u754c\u4e0a","dishes_merchant_id": "107","dishes_del": "0","del_time": "0","dishes_list": [{"dishes_id": "58","dishes_name": "\u8fd9\u8fd8\u662f","dishes_classify_id": "68","dishes_price": "1200","dishes_desc": "\u5bf9\u5bf9\u5bf9","dishes_url": "\/offstore\/order\/20200821\/2020082113322934241_1597987949.png","dishes_merchant_id": "107","dishes_sale": "0","dishes_send": "0","dishes_status": "1","dishes_count": "0","dishes_limit": "0","attributes_id": "0","sku_id": "255","dishes_classify_name": "\u4e16\u754c\u4e0a"},
返回结果8
{"success": true,"msg": "\u4fee\u6539\u6210\u529f","message": "\u4fee\u6539\u6210\u529f","cmd": "hint","data": [],"session": "ra505qfdn70q97bn4s3i8m4d03"}
返回结果9
{"success": true,"msg": "\u6dfb\u52a0\u6210\u529f~\uff01","message": "\u6dfb\u52a0\u6210\u529f~\uff01","cmd": "hint","data": {"dishes_classify_id": 75},"session": "ra505qfdn70q97bn4s3i8m4d03"}
返回结果10
{"success": true,"msg": "\u4e0b\u67b6\u6210\u529f~\uff01","message": "\u4e0b\u67b6\u6210\u529f~\uff01","cmd": "hint","data": null,"session": "ra505qfdn70q97bn4s3i8m4d03"}
返回结果11
{"success": true,"msg": "\u684c\u53f7\u5217\u8868","message": "\u684c\u53f7\u5217\u8868","cmd": "hint","data": {"list": [{"classify_id": "161","classify_name": "\u4e00\u697c","son": [{"region_id": "167","region_number": "100","min_people": "2","max_people": "4","region_name": " \u6d4b\u8bd51","region_url": "\/offstore\/qrcode\/107\/161_100.png","type": "1"}, {"region_id": "168","region_number": "101","min_people": "2","max_people": "6","region_name": "\u6d4b\u8bd5\u4e8c","region_url": "\/offstore\/qrcode\/107\/161_101.png","type": "2"}]}, {"classify_id": "162","classify_name": "\u4e8c\u697c","son": [{"region_id": "169","region_number": "103","min_people": "2","max_people": "6","region_name": "\u6d4b\u8bd53","region_url": "\/offstore\/qrcode\/107\/162_103.png","type": "3"}]}]},"session": "ra505qfdn70q97bn4s3i8m4d03"}
返回结果12
{"success": true,"msg": "\u5206\u7c7b\u5217\u8868","message": "\u5206\u7c7b\u5217\u8868","cmd": "hint","data": [{"classify_id": "161","classify_name": "\u4e00\u697c"}, {"classify_id": "162","classify_name": "\u4e8c\u697c"}],"session": "ra505qfdn70q97bn4s3i8m4d03"}
返回结果13
{"success": true,"msg": "\u6dfb\u52a0\u6210\u529f","message": "\u6dfb\u52a0\u6210\u529f","cmd": "hint","data": [],"session": "ra505qfdn70q97bn4s3i8m4d03"}
返回结果14
{"success": true,"msg": "\u6dfb\u52a0\u6210\u529f","message": "\u6dfb\u52a0\u6210\u529f","cmd": "hint","data": [],"session": "ra505qfdn70q97bn4s3i8m4d03"}
返回结果15
{"success": true,"msg": "\u684c\u53f7\u8fd4\u73b0","message": "\u684c\u53f7\u8fd4\u73b0","cmd": "hint","data": {"region_id": "176","region_number": "666","min_people": "3","max_people": "5","region_name": "good room","region_url": "\/offstore\/qrcode\/107\/169_666.png","type": "2"},"session": "ra505qfdn70q97bn4s3i8m4d03"}
返回结果16
{"success": true,"msg": "\u4fee\u6539\u6210\u529f","message": "\u4fee\u6539\u6210\u529f","cmd": "hint","data": [],"session": "ra505qfdn70q97bn4s3i8m4d03"}
返回结果17
{"success": true,"msg": "\u83b7\u53d6\u6d3b\u52a8\u5217\u8868\u6210\u529f~\uff01","message": "\u83b7\u53d6\u6d3b\u52a8\u5217\u8868\u6210\u529f~\uff01","cmd": "hint","data": {"list": [{"merchant_activity_id": "81","activity_type": "1","activity_name": "\u7ea2\u5305\u6c60","merchant_id": "107","activity_url": "offstore\/images\/1230.png","is_able": "1"}, {"merchant_activity_id": "82","activity_type": "2","activity_name": "\u6ee1\u51cf\u6d3b\u52a8","merchant_id": "107","activity_url": "offstore\/images\/1231.png","is_able": "1"}, {"merchant_activity_id": "83","activity_type": "3","activity_name": "\u6ee1\u8d60\u6d3b\u52a8","merchant_id": "107","activity_url": "offstore\/images\/1229.png","is_able": "1"}, {"merchant_activity_id": "84","activity_type": "4","activity_name": "\u9996\u5355\u4f18\u60e0","merchant_id": "107","activity_url": "offstore\/images\/1228.png","is_able": "1"}, {"merchant_activity_id": "85","activity_type": "5","activity_name": "\u5145\u503c\u8bbe\u7f6e","merchant_id": "107","activity_url": "offstore\/images\/1232.png","is_able": "1"}]},"session": "ra505qfdn70q97bn4s3i8m4d03"}
返回结果18
返回结果19
返回结果20