🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# 新增品牌餐单 ----------------------------- 此接口用来新增分类信息 接口: /open/waimai/goods/addorupdate_menu 参数: | 参数 | 名称 | | --- | --- | | app_id | 开发者ID | | timestamp | 请求时间戳 | | access_token | 授权访问的access_token | | goods_info | 商品信息集合(参照5.11返回数据集合) | | name | 餐单名称 | 响应: | 参数 | 名称 | | --- | --- | | head | 状态信息 | | body | 响应信息 | head字段说明: | 参数 | 名称 | | --- | --- | | code | 状态码 200=成功 | | msg | 状态说明 | body字段说明: | 参数 | 名称 | | --- | --- | | menu_id | 餐单id | 响应示例: ~~~ { "head":{ "code":200, "msg":"success" }, "body":{ "menu_id":1 } } ~~~ **测试一下** ```bash curl -d "timestamp=1522660262&app_id=10001999&access_token=11d38e2d0122096d2d41c82c0978ac48962cade6&name=小程序餐单&goods_info=[{"id":"9244","name":"API分类一","sort":"0","status":"1","list":[{"juhe_goods_id":"86794","id":"86794","name":"API商品一","img_url":"https://wbollbj.wboll.com/uploads/waimai/7/7988a508bf66084d1bcb60359c8672d1.jpg?x-oss-process=image/resize,m_fill,w_690,h_690,limit_0/auto-orient,0/quality,q_90","attributes":"","unit":"份","description":"商品描述","label":"1","status":"1","sku":[{"id":"733","name":"小份","price":"100","box_num":"1","box_price":"1","stock":"9999","max_stock":"9999","$$hashKey":"object:49"},{"id":"734","name":"中份","price":"200","box_num":"1","box_price":"2","stock":"9999","max_stock":"9999","$$hashKey":"object:50"}],"checked":true,"$$hashKey":"object:46"}],"count":1,"$$hashKey":"object:44"}]" http://apib7d.wboll.com/open/waimai/goods/addorupdate_menu ```