This commit is contained in:
Leo
2025-04-02 22:28:25 +08:00
parent a4d274211b
commit 2da47a1439

View File

@@ -1162,7 +1162,12 @@ private void handleUserInteraction(String fromWxid, String message) {
goodsReq.setKeyword(uJDUrl);
goodsReq.setSceneId(1);
request.setGoodsReqDTO(goodsReq);
request.setVersion("2.0");
request.setVersion("1.0");
request.setSignmethod("md5");
// 时间戳格式为yyyy-MM-dd HH:mm:ss时区为GMT+8。API服务端允许客户端请求最大时间误差为10分钟
Date date = new Date();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
request.setTimestamp(simpleDateFormat.format(date));
logger.debug("getUnionOpenGoodsQueryRequest 查询商品信息请求:{}", JSON.toJSONString(request));
UnionOpenGoodsQueryResponse execute = client.execute(request);