|
|
@@ -554,7 +554,8 @@ public class PayScoreServiceImpl implements PayScoreService {
|
|
|
}
|
|
|
|
|
|
private String generateOutOrderNo(Long orderId) {
|
|
|
- return "PS" + System.currentTimeMillis() + orderId;
|
|
|
+ // 微信限制 out_order_no ≤ 32 字符,PS(2) + 秒级时间戳(10) + orderId(19) = 31
|
|
|
+ return "PS" + (System.currentTimeMillis() / 1000) + orderId;
|
|
|
}
|
|
|
|
|
|
private String formatDateTime(LocalDateTime dateTime) {
|