有赞新零售社区

发帖
API使用问题»(推送BUG)未付款订单取消时推送的消息类型错误

(推送BUG)未付款订单取消时推送的消息类型错误

Bright丶 2018-10-29 1913 浏览 3 评论 | 只看楼主 [打印]
1、业务场景

未付款的订单,在待付款订单列表中点击取消,接收到订单推送消息的参数type是[backcolor=rgba(0, 0, 0, 0.03)]trade_TradeCreate,正确的应该是trade_TradeClose

2、关键点

交易消息V3版本

3、参数

推送事件名称:[backcolor=rgba(0, 0, 0, 0.03)]trade_TradeCreate,正确应该是trade_TradeClose
订单号:E20181028164634016600017、E20181028165354016600015



收到的内容:
{mode=1, id='E20181028165354016600015', clientId='7ed33241a0866e450d', type='trade_TradeCreate', status='WAIT_BUYER_PAY', msg='%7B%22order_promotion%22:%7B%22adjust_fee%22:%220.00%22%7D,%22refund_order%22:[],%22full_order_info%22:%7B%22address_info%22:%7B%22self_fetch_info%22:%22%22,%22delivery_address%22:%22%E7%87%95%E6%B3%89%E8%B7%AF51%E5%8F%B7%20%E5%AE%89%E5%BA%B7%E9%93%B6%E8%8B%91%22,%22delivery_start_time%22:%222018-10-28%2016:30:00%22,%22delivery_end_time%22:%222018-10-28%2017:00:00%22,%22delivery_postal_code%22:%22%22,%22receiver_name%22:%22%E7%BD%97%E6%AC%A2%E6%AC%A2%22,%22delivery_province%22:%22%E6%B9%96%E5%8D%97%E7%9C%81%22,%22delivery_city%22:%22%E9%83%B4%E5%B7%9E%E5%B8%82%22,%22delivery_district%22:%22%E5%8C%97%E6%B9%96%E5%8C%BA%22,%22address_extra%22:%22%7B%5C%22deliveryTimeSpan%5C%22:%5C%22halfhour%5C%22,%5C%22areaCode%5C%22:%5C%22431002%5C%22,%5C%22lon%5C%22:113.03490700932,%5C%22lat%5C%22:25.793657509387%7D%22,%22receiver_tel%22:%2218200709895%22%7D,%22remark_info%22:%7B%22buyer_message%22:%22%22,%22star%22:0,%22trade_memo%22:%22001800002293%22%7D,%22pay_info%22:%7B%22outer_transactions%22:[],%22post_fee%22:%220.05%22,%22total_fee%22:%220.23%22,%22payment%22:%220.28%22,%22transaction%22:[]%7D,%22buyer_info%22:%7B%22outer_user_id%22:%22%22,%22buyer_phone%22:%2218200709895%22,%22fans_type%22:1,%22buyer_id%22:855288998,%22fans_id%22:6206446891,%22fans_nickname%22:%22Bright%E4%B8%B6%22%7D,%22orders%22:[%7B%22outer_sku_id%22:%22%22,%22sku_unique_code%22:%22%22,%22goods_url%22:%22https://h5.youzan.com/v2/showcase/goods%3Falias=36blnm68mt891%22,%22item_id%22:435260202,%22outer_item_id%22:%2200093536%22,%22discount_price%22:%220.16%22,%22item_type%22:0,%22num%22:1,%22sku_id%22:0,%22sku_properties_name%22:%22[]%22,%22pic_path%22:%22%22,%22oid%22:%221479792640750786422%22,%22title%22:%22[%E6%B5%8B%E8%AF%95]%E7%B2%BE%E5%93%81%E5%B1%B1%E8%8D%AF%20300g/%E4%BB%BD%22,%22buyer_messages%22:%22%22,%22is_present%22:false,%22pre_sale_type%22:%22null%22,%22points_price%22:%220%22,%22price%22:%220.16%22,%22total_fee%22:%220.16%22,%22alias%22:%2236blnm68mt891%22,%22payment%22:%220.16%22,%22is_pre_sale%22:%22null%22%7D,%7B%22outer_sku_id%22:%22%22,%22sku_unique_code%22:%22%22,%22goods_url%22:%22https://h5.youzan.com/v2/showcase/goods%3Falias=3euaufhgdzrxh%22,%22item_id%22:435338425,%22outer_item_id%22:%2200059827%22,%22discount_price%22:%220.07%22,%22item_type%22:0,%22num%22:1,%22sku_id%22:0,%22sku_properties_name%22:%22[]%22,%22pic_path%22:%22%22,%22oid%22:%221479792640750786423%22,%22title%22:%22[%E6%B5%8B%E8%AF%95]%E7%B2%BE%E5%93%81%E7%9C%9F%E5%A7%AC%E8%8F%87%20150g/%E7%9B%92%22,%22buyer_messages%22:%22%22,%22is_present%22:false,%22pre_sale_type%22:%22null%22,%22points_price%22:%220%22,%22price%22:%220.07%22,%22total_fee%22:%220.07%22,%22alias%22:%223euaufhgdzrxh%22,%22payment%22:%220.07%22,%22is_pre_sale%22:%22null%22%7D],%22source_info%22:%7B%22is_offline_order%22:false,%22book_key%22:%22201810281653385bd57912c3e0635682%22,%22biz_source%22:%22null%22,%22source%22:%7B%22platform%22:%22wx%22,%22wx_entrance%22:%22direct_buy%22%7D%7D,%22order_info%22:%7B%22consign_time%22:%22%22,%22order_extra%22:%7B%22is_from_cart%22:%22true%22,%22is_member%22:%22false%22,%22buyer_name%22:%22Bright%E4%B8%B6%22,%22is_points_order%22:%220%22,%22is_offline%22:%220%22%7D,%22created%22:%222018-10-28%2016:53:54%22,%22offline_id%22:53183174,%22status_str%22:%22%E5%B7%B2%E5%85%B3%E9%97%AD%22,%22expired_time%22:%222018-10-28%2018:53:54%22,%22success_time%22:%22%22,%22is_multi_store%22:true,%22type%22:0,%22tid%22:%22E20181028165354016600015%22,%22confirm_time%22:%22%22,%22pay_time%22:%22%22,%22update_time%22:%222018-10-28%2016:54:41%22,%22pay_type_str%22:%22%22,%22is_retail_order%22:false,%22pay_type%22:0,%22team_type%22:0,%22refund_state%22:0,%22close_type%22:4,%22status%22:%22TRADE_CLOSED%22,%22express_type%22:2,%22order_tags%22:%7B%22is_message_notify%22:true,%22is_multi_store%22:true,%22is_secured_transactions%22:true%7D%7D%7D%7D', kdtId=41286741, sign='6caf4bc13507d7a5cf1f597df9553997', version=1540716881, test=false, sendCount=0}



msg解析出来内容:
{"order_promotion":{"adjust_fee":"0.00"},"refund_order":[],"full_order_info":{"address_info":{"self_fetch_info":"","delivery_address":"xxx","delivery_start_time":"2018-10-28 16:30:00","delivery_end_time":"2018-10-28 17:00:00","delivery_postal_code":"","receiver_name":"xxx","delivery_province":"湖南省","delivery_city":"郴州市","delivery_district":"北湖区","address_extra":"{\"deliveryTimeSpan\":\"halfhour\",\"areaCode\":\"431002\",\"lon\":113.03490700932,\"lat\":25.793657509387}","receiver_tel":"18200709895"},"remark_info":{"buyer_message":"","star":0,"trade_memo":"001800002293"},"pay_info":{"outer_transactions":[],"post_fee":"0.05","total_fee":"0.23","payment":"0.28","transaction":[]},"buyer_info":{"outer_user_id":"","buyer_phone":"18200709895","fans_type":1,"buyer_id":855288998,"fans_id":6206446891,"fans_nickname":"Bright丶"},"orders":[{"outer_sku_id":"","sku_unique_code":"","goods_url":"https://h5.youzan.com/v2/showcase/goods?alias=36blnm68mt891","item_id":435260202,"outer_item_id":"00093536","discount_price":"0.16","item_type":0,"num":1,"sku_id":0,"sku_properties_name":"[]","pic_path":"https://img.yzcdn.cn/upload_files/2018/09/08/FjOedhL98adc6jvBfdkJ6jSXmhmD.jpg","oid":"1479792640750786422","title":"[测试]精品山药 300g/份","buyer_messages":"","is_present":false,"pre_sale_type":"null","points_price":"0","price":"0.16","total_fee":"0.16","alias":"36blnm68mt891","payment":"0.16","is_pre_sale":"null"},{"outer_sku_id":"","sku_unique_code":"","goods_url":"https://h5.youzan.com/v2/showcase/goods?alias=3euaufhgdzrxh","item_id":435338425,"outer_item_id":"00059827","discount_price":"0.07","item_type":0,"num":1,"sku_id":0,"sku_properties_name":"[]","pic_path":"https://img.yzcdn.cn/upload_files/2018/09/08/FtMTivTqZQsE6YVpOj9WpezPtVp0.jpg","oid":"1479792640750786423","title":"[测试]精品真姬菇 150g/盒","buyer_messages":"","is_present":false,"pre_sale_type":"null","points_price":"0","price":"0.07","total_fee":"0.07","alias":"3euaufhgdzrxh","payment":"0.07","is_pre_sale":"null"}],"source_info":{"is_offline_order":false,"book_key":"201810281653385bd57912c3e0635682","biz_source":"null","source":{"platform":"wx","wx_entrance":"direct_buy"}},"order_info":{"consign_time":"","order_extra":{"is_from_cart":"true","is_member":"false","buyer_name":"Bright丶","is_points_order":"0","is_offline":"0"},"created":"2018-10-28 16:53:54","offline_id":53183174,"status_str":"已关闭","expired_time":"2018-10-28 18:53:54","success_time":"","is_multi_store":true,"type":0,"tid":"E20181028165354016600015","confirm_time":"","pay_time":"","update_time":"2018-10-28 16:54:41","pay_type_str":"","is_retail_order":false,"pay_type":0,"team_type":0,"refund_state":0,"close_type":4,"status":"TRADE_CLOSED","express_type":2,"order_tags":{"is_message_notify":true,"is_multi_store":true,"is_secured_transactions":true}}}}

本帖最后由 Bright丶 于 2018-10-28 17:15 编辑
用手机打开
收藏 ··· 回复
    很抱歉!给您带来的不便,该问题已经反馈有结果该贴下方同步。再次感谢您的反馈

      Bright丶 青铜   2018-10-31 | 只看该作者
      有赞-导演 发表于 2018-10-29 11:11
      很抱歉!给您带来的不便,该问题已经反馈有结果该贴下方同步。再次感谢您的反馈 ...


      您好,是否已经解决?

        Bright丶 发表于 2018-10-31 11:15
        您好,是否已经解决?


        您好这个问题预计本周四发布。

          1跳至
          您需要登录后才可以回帖 登录 | 立即注册

          本版积分规则

          复制链接
          新浪微博
          QQ空间
          微信扫码
          • 回复

          • 评分

          客服工作时间是9:00-18:00,客服妹子当前不在线,若不能及时回复请谅解。试试右上角的搜索吧,论坛有丰富的经验贴、公告贴,相信一定能够帮到您~

          复制成功