补单逻辑补充

master_zzxx
grimm 2024-07-01 17:50:05 +08:00
parent 2a1c31613f
commit 1a8809892e
1 changed files with 6 additions and 2 deletions

View File

@ -354,7 +354,7 @@ public class BuyGoodsNewLogic {
/**
*
*/
public static void anewRecharge(ISession session) throws Exception {
public static void anewRecharge(ISession session){
String key = RedisKey.ANEW_RECHARGE_ORDER + ":" + session.getUid();
Map<String, Order> orderMap = RedisUtil.getInstence().getmapvaluekeyclass(key, String.class, Order.class);
if (orderMap == null || orderMap.isEmpty()){
@ -366,7 +366,11 @@ public class BuyGoodsNewLogic {
continue;
}
LOGGER.info("补单信息:{}", order);
sendGoods(order.getUid(), order.getSdkGoodsId(), order.getOpenId(), order.getOrderId(), order.getOrderTime(), (int) order.getAmount());
try {
sendGoods(order.getUid(), order.getSdkGoodsId(), order.getOpenId(), order.getOrderId(), order.getOrderTime(), (int) order.getAmount());
} catch (Exception e) {
LOGGER.error("补单失败", e);
}
}
RedisUtil.getInstence().del(key);