- 【即时配送】物流状态返回502,实际上三方没有骑手接单?
遇到的问题:即时配送下单后,系统推送到第三方平台,比如顺丰同城。长时间没有骑手接单时,微信接口返回的物流状态是502,过段时间后又有骑手接单了,导致数据不一致。想了解下第三方平台多长时间不接单,微信接口会返回502状态。还有的订单返回状态为0 使用的接口:POST https://api.weixin.qq.com/cgi-bin/express/local/business/order/get?access_token=ACCESS_TOKEN 入参: {"access_token":"63_i9hqzWrUQov7CPai8dTXl-8K7o-ScKm6_yxgsy-t8lyEUCfj5k9n-euYHrCR6EKWGEpX8XUDVykvClCYM8fR19dlTeR","delivery_sign":"6564a9226557861d65645072a429c6f5b02c7058","shop_no":"1671514274164181732","shop_order_id":"204633500324","shopid":"1593619569"} 出参: {"resultcode":5,"resultmsg":"不存在或合作方不合作:shopid","order_status":0,"action_msg":"","agent_info":[],"waybill_id":"","rider_name":"孔星","rider_phone":"17554255119","order_token":"-JStW9epKD_nDjumE7yeg4FM4B5O7SS2GGUMo9_mSjXPEFpGiG5L3dhNjWxt_AzoiZQkAVmSZGOMLQJZVCJS78lraaY-m0kVwgVaQqhpejk","delivery_id":"MTPS","delivery_name":"美团配送"}
2022-12-20 - 【物流助手】物流消息回调接口相关?
我司用了顺丰同城配送,有个业务场景是需要记录骑手修改预计送送达的时间。用了微信物流消息回调接口里的301状态中的reach_time字段,如下图所示 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.onOrderStatus.html [图片] 在接收到的回调消息中,这个字段的值不对,已找顺丰开发者协助排查,发现两边的数据不一致。顺丰给微信传的数据和微信回调接口收到的数据不一致,如下所示 顺丰给微信传的数据: {"access_token":"58_X4CvaoXVik9koKGisxGW1mzF5eGjhcTicVGfFkCvlpgEM4J0_nJGYslle8cTq72Wls6ylMokg9ECiyloaKTNdKPyhs3t_LDtWQQDc5r5zSoSpX_yl6WXm0QYF2ebcLXzcywZG9TX58RFSq_oIKPjAJAXZE","wx_token":"uAlIZDahSOhcE5XPJA3L4nsgB_VQ0FKxTbxPpmopAZzcZXods8xdVBdFAmt3In-g","shopid":"1593619448","shop_order_id":"100022454073","shop_no":"3243279847393","waybill_id":"3472821528232705537","action_time":1655970968,"order_status":301,"action_msg":"更改期望送达时间","agent":{"name":"杜晓雨","phone":"18846195859","reach_time":1655978400},"wxa_path":"pages\/index\/index","expected_delivery_time":1655974800} 微信物流回调接口数据: <xml><ToUserName><![CDATA[gh_cfbab4def7c1]]></ToUserName> <FromUserName><![CDATA[oTiD25QzxtF77SOLLvcHyAGrP8ik]]></FromUserName> <CreateTime>1655970968</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[update_waybill_status]]></Event> <shopid><![CDATA[1593619448]]></shopid> <shop_order_id><![CDATA[100022454073]]></shop_order_id> <waybill_id><![CDATA[3472821528232705537]]></waybill_id> <action_time>1655970968</action_time> <order_status>301</order_status> <action_msg><![CDATA[更改期望送达时间]]></action_msg> <agent> <name><![CDATA[杜晓雨]]></name> <phone><![CDATA[18846195859]]></phone> <reach_time>1655974800</reach_time> </agent> <shop_no><![CDATA[3243279847393]]></shop_no> </xml> 麻烦协助排查一下物流回调接口是否有异常,谢谢!
2022-06-27 - 【即时配送】骑手修改预计送达时间,消息回调中没有预计送达时间字段?
您好,反馈个问题,骑手修改预计送达时间,我这边也收到修改时间的消息推送了,消息推送里面的数据格式有问题,麻烦给看下数据格式是否可以修改下。具体的内容如下图所示 [图片] [图片] [图片] [图片] 问题:骑手修改预计送达时间后没有返回reach_time字段
2022-05-30 - 【即时配送】即时配送下单,调用接口报错,错误码 2001 app_key无效,麻烦看下怎么回事?
调用接口:https://api.weixin.qq.com/cgi-bin/express/local/business/order/add?access_token=ru 入参: "sender": { "phone": "", "coordinate_type": 1, "address": "东莞市南城区银丰路XXX号", "name": "测试XXX店", "lng": 113.748711, "lat": 23.025871, "city": "东莞市", "address_detail": "(测试XXX店)" }, "delivery_id": "DADA", "shop_no": "10045", "shop": { "img_url": "xxx", "wxa_path": "/pages/order/detail/detail?orderId=100004881244&orderStoreId=11000488131893", "goods_name": "嘉顿瑞士卷三个装", "goods_count": 6 }, "shopid": "dadae674e926e255XXX", "receiver": { "phone": "15601159XXX", "coordinate_type": 1, "address": "胜和酒店式公寓", "name": "周道", "lng": 113.74916942132116, "lat": 23.026387540499584, "city": "东莞市", "address_detail": "2030" }, "order_info": { "expected_finish_time": 1635417900, "order_time": 1635413674, "rider_pick_method": 1, "delivery_service_code": "", "note": "17086#100004881244,", "order_type": 0 }, "openid": "o6QO75Q6bq1Wp9cGLy9efvGRw6Lg", "cargo": { "cargo_first_class": "日用百货", "goods_value": 18.6, "cargo_second_class": "超市", "goods_weight": 0 }, "shop_order_id": "100004881244", "access_token": "50_CnmuNQRuhlAWfqyPvzFZ_JwYvbM-fMrG2k9E9JSUOJu4j43wyZKpWK323vdkGh9BWK_xiQOc5JV_F4SOAhW5ydUgzzW5SOVey8g1IE2lHNox93kMJa4-US2TflKjMt2dbTNcm8tnNuJF7vz8HKYdABAZCQ", "delivery_sign": "3ad0805f481834f17c8d24e02da1608086f690a9" } 出参: { "resultcode": 2001, "resultmsg": "app_key无效", "fee": 0, "deliverfee": 0, "couponfee": 0, "tips": 0, "distance": 0, "waybill_id": "", "order_status": 0, "finish_code": 0, "pickup_code": 0, "dispatch_duration": 0, "sender_lng": 0, "sender_lat": 0 }
2021-10-28 - 【即时配送】即时配送下单,调用接口报错,错误码 "errcode":40001,麻烦看下怎么回事?
调用接口:https://api.weixin.qq.com/cgi-bin/express/local/business/order/add?access_token= 入参:access_token=50_UVoeStkh-OzF_pl5vdQGqT1Sw76Dxw0EUH0XVz2giKuAGRA4DGOnVMO8Ix8f2CpEswvdnb1csKr8Inv82cqVtxPXkPq3A6yluzuITIL9vAK1FyDG_9bld5vD4U3HqvuF3RzLrRcOHcHZwml7OQFfAAAIKZ,params:{"sender":{"phone":"","coordinate_type":1,"address":"湖南省XXXXX","name”:”XXXXXX店","lng":114.370089,"lat":30.528616,"city":"武汉市","address_detail”:”(XXXXXX店)"},"delivery_id":"DADA","shop_no":"8003","shop":{"img_url":"http://img.wscstrace.com/images/goods/21843/middle/O1CN01Fr1YfE2BQ6ibVKGNR_!!2680068332.jpg","wxa_path":"/pages/order/detail/detail?orderId=100700000018878&orderStoreId=10071000001894967","goods_name”:”XXXXXX/盒”,”goods_count":1.0},"shopid":"dada56e934cXXXXXX72","receiver":{"phone":"153XXXX3871","coordinate_type":1,"address”:”XXXXXX店","name":"刘","lng":114.37006993485731,"lat":30.527991091823857,"city":"武汉市","address_detail":"武商超市"},"order_info":{"expected_finish_time":1634213395,"order_time":1634210995,"rider_pick_method":1,"delivery_service_code":"","order_type":0},"openid":"owLFX48vzpQ-5A7Eq5ae1IlOe4h4","cargo":{"cargo_first_class":"日用百货","goods_value":22.8,"cargo_second_class":"超市","goods_weight":0.52},"shop_order_id":"10070XXXX18878","access_token":"50_UVoeStkh-OzF_pl5vdQGqT1Sw76Dxw0EUH0XVz2giKuAGRA4DGOnVMO8Ix8f2CpEswvdnb1csKr8Inv82cqVtxPXkPq3A6yluzuITIL9vAK1FyDG_9bld5vD4U3HqvuF3RzLrRcOHcHZwml7OQFfAAAIKZ","delivery_sign":"10e123126962b0bdc4042a6ee7930e85966c0286"} 出参:{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 616814eb-03fb8d80-4be56f3b"} 签名和accessToken都仔细检查了,找不到什么原因?
2021-10-14 - 【即时配送】关于签名delivery_sign的问题?
调用https://api.weixin.qq.com/cgi-bin/express/local/business/delivery/getall接口时, 出参: {"resultcode":0,"resultmsg":"ok","list":[{"delivery_id":"SFTC","delivery_name":"顺丰同城急送"},{"delivery_id":"SS","delivery_name":"闪送"},{"delivery_id":"MTPS","delivery_name":"美团配送"},{"delivery_id":"DADA","delivery_name":"达达"}]} 调用https://api.weixin.qq.com/cgi-bin/express/local/business/order/pre_add接口时, 入参: { "access_token": "43_COneNUzFSEDkPIoxaaqAeb7LP_m48Fs-VaQifM2hdFmtc0GKQyViZQg2Rl05ivHQYrWFmiUqpgry6rPrIbs7KkteSaue0XOVmXwmVr-7qjWp6qozT9hLuevN1gz1rOfMEzrkYOZgVQChXS3HGAFjAEALFK", "shop": "{\"goods_count\":2.0,\"goods_name\":\"自然堂洁面乳-计数wyf\",\"img_url\":\"xxx\",\"wxa_path\":\"xxx\"}", "receiver": "{\"address\":\"霄云里8号(霄云里8号近首汽加油站)\",\"address_detail\":\"测试\",\"city\":\"北京市\",\"lat\":39.968636,\"lng\":116.471089,\"name\":\"测试\",\"phone\":\"18514281871\"}", "sender": "{\"address\":\"北京市朝阳区霄云里8号\",\"address_detail\":\"[门店地址]\",\"city\":\"北京市\",\"lat\":39.968422,\"lng\":116.471089,\"name\":\"北京霄云里店\",\"phone\":\"010-3425423\"}", "openid": "\"oTiD25e-t84SDUWGFYLEw2_zlwB0\"", "delivery_id": "TEST", "shopid": "test_shop_id", "delivery_sign": "a93d8d6bae9a9483c1b1d4e8670e7f6226ec94cb", "shop_order_id": "test_shop_order_id", "cargo": "{\"cargo_first_class\":\"其他\",\"cargo_second_class\":\"其他\",\"goods_value\":212.2,\"goods_weight\":0.3}", "shop_no": "1" } 出参: {"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 6062e421-52486119-412f370b"} 怀疑的问题:第一个接口能通说明access_token是没有问题的,第二个接口提示access_token无效,怀疑是接口入参的问题。检查了入参,感觉是这个签名的字段不对。对接的是顺丰同城急送,顺丰的签名规则和微信文档提供的签名规则不一致,应该采用哪种呢?
2021-03-30 - [物流助手] - 面单打印操作员设置。重复绑定操作员,标签信息没有更新的问题?
调用的方法:logistics.updatePrinter 配置面单打印员 操作步骤:绑定一个操作员同时设置标签为123,然后解绑这个操作员,然后再次绑定操作员同时设置标签为456。此时调用获取打印员的接口logistics.getPrinter后,返回的数据既有标签123,也有标签456。想问下这种重新绑定的操作能否把原来的标签覆盖掉?解绑操作能否把原来设置的标签清除掉?
2020-09-15 - [物流助手] - 即时配送错误?
INFO 2020-04-08 18:18:22 [main] [res--->:{"errcode":930561,"errmsg":"args error hint: [kwgv7a0106a394]"}] [com.earth.util.WeixinUtil] 预下单失败:args error hint: [kwgv7a0106a394]
2020-04-08