收藏
回答

美团推送小店商品失败报错信息:不可用时间exclusive_date传值无效,问下小店的验证逻辑?

action:dispense.product.create

推店成功的请求参数

{"product_type":2,"skus":[{"sale_price":36000}],"category_id":"545273","verify_page":{"path":"/pepper/subPackages/pages/channelMiddle/index?edsChannelId\u003d1817333008\u0026productId\u003d1195812575\u0026skuIds\u003d2362818568","appid":"wxde8ac0a21135c07d"},"out_product_id":"1195812575","verify_at_store":0,"code_source_type":3,"product_name":"牛小新烧肉·自助放题|【年度钜惠·双人】安格斯谷饲海鲜档烧肉·自助畅吃|13店通用","brand_id":"10024692","head_imgs":["https://mmecimage.cn/p/wx6937d3df46b485f4/HIEBtsfBL5138zYpWPCt8fR-VPw3zKQe6QRmpOBnSgat"],"attr_kv_map":{"refund_policy":"1","set_meals":"[{\"items\":[{\"item_count\":99999,\"item_name\":\"【双人】海鲜档烧肉自助畅吃\",\"item_price\":39800}],\"group_name\":\"烤肉自助套餐\",\"groupingType\":1}]","use_date_rule":"{\"validate_type\":2,\"validate_days\":30}","settle_type":"1","additional_rule":"\"0:最长可用餐120分钟\\n1:本单发票由商家提供,详情请咨询商家\\n2:仅限堂食\\n为了避免过多的浪费,浪费的食材按150g每份,收取30元一份的食材浪费费用\\n下单后,点餐加菜仅限90分钟内,120分钟用餐时间\\n请提前购买好团购票,落座后验券\\n购买用户不可同时享受商家其他优惠\\n部分菜品因时令原因有所不同,请以店内当日实际供应为准\\n使用优惠券购买团单,有效期以优惠券规则为准\\n3:无需预约,消费高峰期可能需要等位\\n\"","use_time":"{\"time_periods\":[{\"end_at_next_day\":0,\"use_start_time\":\"00:00:00\",\"use_end_time\":\"23:59:59\"}],\"use_time_type\":1}","exclusive_date":"{\"enable\":0}","bring_out_type":"2","appointment":"{\"need_appointment\":0,\"ahead_time_type\":0}","available_store_desc":"\"13家门店可用\"","need_phone_num":"1","detail_imgs":"[\"https://mmecimage.cn/p/wx6937d3df46b485f4/HIEBtsfBL5138zYpWPCt8fR-VPw3zKQe6QRmpOBnSgat\",\"https://mmecimage.cn/p/wx6937d3df46b485f4/HIEBtsfBL5138zYpWPCt8fR-VPw3zKQe6QRmpOBnSgat\"]","limit_buy_rule":"{\"limit_buy_period\":0}"}}


{"product_type":2,"skus":[{"sale_price":1110}],"category_id":"545214","verify_page":{"path":"/pepper/subPackages/pages/channelMiddle/index?edsChannelId\u003d1817333008\u0026productId\u003d1196420007\u0026skuIds\u003d2363017379","appid":"wxde8ac0a21135c07d"},"out_product_id":"1196420007","verify_at_store":0,"code_source_type":3,"product_name":"1点点|藏青盐咸奶绿(中杯)|2843店通用","brand_id":"10024692","head_imgs":["https://mmecimage.cn/p/wx6937d3df46b485f4/HL_yJWJnzkTCZtJoo6eJK-ylfkcii1wxbj3YUPtjT6Gk"],"attr_kv_map":{"refund_policy":"1","set_meals":"[{\"items\":[{\"item_count\":1,\"item_name\":\"藏青盐咸奶绿(中杯)\",\"item_price\":1300}],\"group_name\":\"藏青盐咸奶绿\",\"groupingType\":1}]","use_date_rule":"{\"validate_type\":2,\"validate_days\":30}","settle_type":"1","additional_rule":"\"0:本单发票由商家提供,详情请咨询商家\\n1:堂食外带均可\\n2:团购用户可以享受店内其他所有优惠\\n使用优惠券购买团单,有效期以优惠券规则为准\\n3:无需预约,消费高峰期可能需要等位\\n\"","use_time":"{\"time_periods\":[{\"end_at_next_day\":0,\"use_start_time\":\"00:00:00\",\"use_end_time\":\"23:59:59\"}],\"use_time_type\":1}","exclusive_date":"{\"enable\":0}","bring_out_type":"1","appointment":"{\"need_appointment\":0,\"ahead_time_type\":0}","available_store_desc":"\"3401家门店可用\"","need_phone_num":"1","detail_imgs":"[\"https://mmecimage.cn/p/wx6937d3df46b485f4/HL_yJWJnzkTCZtJoo6eJK-ylfkcii1wxbj3YUPtjT6Gk\",\"https://mmecimage.cn/p/wx6937d3df46b485f4/HL_yJWJnzkTCZtJoo6eJK-ylfkcii1wxbj3YUPtjT6Gk\"]","limit_buy_rule":"{\"limit_buy_period\":0}"}}


推送失败的请求参数

{"product_type":1,"skus":[{"sale_price":8900}],"category_id":"545210","verify_page":{"path":"/pepper/subPackages/pages/channelMiddle/index?edsChannelId\u003d1817333008\u0026productId\u003d1209572722\u0026skuIds\u003d2366826643","appid":"wxde8ac0a21135c07d"},"out_product_id":"1209572722","verify_at_store":0,"code_source_type":3,"product_name":"西塔老太太泥炉烤肉89元代100元代金券","brand_id":"10024692","head_imgs":["https://mmecimage.cn/p/wx6937d3df46b485f4/HOEn2FsqdcU8I6qKRIm4KIlijqxs7yQOFgyJuBbqGAYy"],"attr_kv_map":{"refund_policy":"1","use_date_rule":"{\"validate_type\":1,\"use_date\":{\"use_end_date\":\"2025-01-09\",\"use_start_date\":\"2024-12-12\"}}","settle_type":"1","additional_rule":"\"0:本单发票由商家提供,详情请咨询商家\\n1:仅限堂食\\n2:100元、200元、500元代金券可以互相叠加,每桌限用3张\\n团购用户不可同时享受商家其他优惠\\n酒水饮料等问题,请致电商家咨询,以商家反馈为准\\n使用优惠券购买团单,有效期以优惠券规则为准\\n3:每人每天最多购买6张美团券\\n最多可叠加使用3张\\n4:无需预约,消费高峰期可能需要等位\\n\"","use_time":"{\"time_periods\":[{\"end_at_next_day\":0,\"use_start_time\":\"00:00:00\",\"use_end_time\":\"23:59:59\"}],\"use_time_type\":1}","exclusive_date":"{\"enable\":1}","bring_out_type":"2","appointment":"{\"need_appointment\":0,\"ahead_time_type\":0}","available_store_desc":"\"56家门店可用\"","need_phone_num":"1","limit_buy_rule":"{\"limit_buy_period\":1,\"limit_buy_num\":6}","voucher_amount":"10000"}}

{"product_type":1,"skus":[{"sale_price":16800}],"category_id":"545210","verify_page":{"path":"/pepper/subPackages/pages/channelMiddle/index?edsChannelId\u003d1817333008\u0026productId\u003d1209579430\u0026skuIds\u003d2366808670","appid":"wxde8ac0a21135c07d"},"out_product_id":"1209579430","verify_at_store":0,"code_source_type":3,"product_name":"西塔老太太泥炉烤肉168元代200元代金券","brand_id":"10024692","head_imgs":["https://mmecimage.cn/p/wx6937d3df46b485f4/HOEn2FsqdcU8I6qKRIm4KIlijqxs7yQOFgyJuBbqGAYy"],"attr_kv_map":{"refund_policy":"1","use_date_rule":"{\"validate_type\":1,\"use_date\":{\"use_end_date\":\"2025-01-09\",\"use_start_date\":\"2024-12-13\"}}","settle_type":"1","additional_rule":"\"0:本单发票由商家提供,详情请咨询商家\\n1:仅限堂食\\n2:100元、200元、500元代金券可以互相叠加,每桌限用3张\\n团购用户不可同时享受商家其他优惠\\n酒水饮料等问题,请致电商家咨询,以商家反馈为准\\n使用优惠券购买团单,有效期以优惠券规则为准\\n3:最多可叠加使用3张\\n4:无需预约,消费高峰期可能需要等位\\n\"","use_time":"{\"time_periods\":[{\"end_at_next_day\":0,\"use_start_time\":\"00:00:00\",\"use_end_time\":\"23:59:59\"}],\"use_time_type\":1}","exclusive_date":"{\"enable\":1}","bring_out_type":"2","appointment":"{\"need_appointment\":0,\"ahead_time_type\":0}","available_store_desc":"\"56家门店可用\"","need_phone_num":"1","limit_buy_rule":"{\"limit_buy_period\":0}","voucher_amount":"20000"}}


辛苦问下视频小店的同事,{"errcode":10020141,"errmsg":"不可用时间exclusive_date传值无效 rid: 675c1329-74b88852-1a5fc59c"} 这个错误信息是怎么验证的


最后一次编辑于  12-16
回答关注问题邀请回答
收藏

1 个回答

  • 神经蛙
    神经蛙
    12-16

    https://developers.weixin.qq.com/doc/channels/locallife/common_structure/structure.html#ExclusiveDate

    可以详见对于 ExclusiveData 的描述, enable = 1 代表开启时,必须要通过 days_of_week 字段指定周几不可用

    12-16
    有用 1
    回复 3
    • lian
      lian
      12-16
      感谢青蛙哥
      12-16
      回复
    • lian
      lian
      星期二 09:16
      文档对ExclusiveData 的描述 是enable开启是对星期不可用,我们这边是有不可用日期和不可用时间,enable是否开启我们这边是根据是否有节假日判断的,有节假日期我们这边会传1过去,青蛙哥,你那边结合代码看下可以吗
      星期二 09:16
      回复
    • lian
      lian
      星期二 09:49
      这enable我不知道当时是怎么交流的,辛苦青蛙哥那边看下代码,确认下怎么验证的
      星期二 09:49
      回复
登录 后发表内容