1
This commit is contained in:
@@ -294,9 +294,9 @@ public class JDUtils {
|
||||
HashOperations<String, String, String> hashOps = redisTemplate.opsForHash();
|
||||
|
||||
// 检查这个小时或分钟是否已经被处理过
|
||||
//if (hashOps.hasKey(timeTag, hourMinuteTag)) {
|
||||
// return null;
|
||||
//}
|
||||
if (hashOps.hasKey(timeTag, hourMinuteTag)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// 调用 API 以拉取订单
|
||||
UnionOpenOrderRowQueryResponse unionOpenOrderRowQueryResponse = getUnionOpenOrderRowQueryResponse(startTime, endTime, page);
|
||||
|
||||
@@ -101,6 +101,7 @@ public class WXUtil {
|
||||
// 全部打印
|
||||
//logger.info("发送文本消息 msgType: {} wxid: {} fromwxid: {} content: {}", msgType, wxid, fromwxid, content);
|
||||
// 先在content顶部插入时间戳
|
||||
// 因为引入了消息队列,所以在每条消息都加上时间戳 格式化成 yyyy-MM-dd HH:mm:ss
|
||||
content = "[" + DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss") + "] \r" + content;
|
||||
|
||||
// 如果是自己的微信,所有信息都加上少爷
|
||||
@@ -110,8 +111,7 @@ public class WXUtil {
|
||||
List<String> strings = splitStringByLength(content, 3072);
|
||||
int count = 1;
|
||||
for (String string : strings) {
|
||||
// 因为引入了消息队列,所以在每条消息都加上时间戳 格式化成 yyyy-MM-dd HH:mm:ss
|
||||
string = "[" + DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss") + "] \r" + string;
|
||||
|
||||
if (strings.size() > 1) {
|
||||
string = "---长消息---第:" + count + "条 " + "\r" + string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user