This commit is contained in:
Van0313
2025-04-26 12:11:55 +08:00
parent 2b15a40f75
commit e7f312ec50

View File

@@ -1531,8 +1531,9 @@ public class JDUtil {
num = Integer.parseInt(split[2]); num = Integer.parseInt(split[2]);
} catch (NumberFormatException ignored) { } catch (NumberFormatException ignored) {
} }
for (int i = 0; i < num; i++){
if (s != null) { if (s != null) {
count = Integer.parseInt(s) + num; // 递增计数器 count = Integer.parseInt(s) + 1; // 递增计数器
} }
// 将新的计数器值保存回 Redis // 将新的计数器值保存回 Redis
@@ -1550,6 +1551,8 @@ public class JDUtil {
// 发送订单信息到微信 // 发送订单信息到微信
wxUtil.sendTextMessage(fromWxid, temp, 1, fromWxid, true); wxUtil.sendTextMessage(fromWxid, temp, 1, fromWxid, true);
}
} catch (Exception e) { } catch (Exception e) {
logger.error("生成订单号时发生异常 - 用户: {}, 日期: {}", fromWxid, today, e); logger.error("生成订单号时发生异常 - 用户: {}, 日期: {}", fromWxid, today, e);