补单逻辑补充
parent
2a1c31613f
commit
1a8809892e
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue