我在视频号小店回调接口里接收到订单下单、订单取消的回调信息如下:
{"ToUserName":"gh_d1307e2c533e","FromUserName":"o4TaK66tTxV28WYq2i0KPnIUlcdw","CreateTime":1706115936,"MsgType":"event","Event":"channels_ec_order_new","order_info":{"order_id":3717334497135560700}}
{"ToUserName":"gh_d1307e2c533e","FromUserName":"o4TaK66tTxV28WYq2i0KPnIUlcdw","CreateTime":1706116052,"MsgType":"event","Event":"channels_ec_order_cancel","order_info":{"order_id":3717334497135560700,"cancel_type":1}}
我的视频号小店ID为wx946303f40e1557db。
但实际上我在小店后台上看到的订单号为:
微信上看到的订单号为:
所以,每当我接到回调消息后,取order_id去查询订单详情,就会得到错误结果: {"errcode":100002,"errmsg":", 当前商家不存在该订单,请检查order_id以及token是否正确 rid: "}
我应该如何处理才能正常查询订单详情呢?
订单号当作字符串,不要当数字处理