|
@@ -21,6 +21,7 @@ import com.fdkankan.platform.user.factory.PayFactory;
|
|
|
import com.fdkankan.platform.user.strategy.OrderStrategyFactory;
|
|
|
import com.fdkankan.platform.user.vo.ResponseOrder;
|
|
|
import com.fdkankan.platform.user.vo.ResponseOrderItem;
|
|
|
+import com.fdkankan.redis.constant.RedisKey;
|
|
|
import com.fdkankan.redis.util.RedisUtil;
|
|
|
import lombok.extern.log4j.Log4j2;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -270,10 +271,10 @@ public class OrderWechatPayController extends BaseController {
|
|
|
// orderSn += "_" + out_trade_no.split("_")[1];
|
|
|
|
|
|
log.warn("orderSnE:" + orderSn + "_expansion");
|
|
|
- redisUtil.set(orderSn + "_expansion", out_trade_no, RedisDefaultConfig.DEFAULT_EXPIRE_TIME);
|
|
|
+ redisUtil.set(orderSn + "_expansion", out_trade_no, RedisKey.EXPIRE_TIME_2_HOUR);
|
|
|
}else {
|
|
|
log.warn("orderSnE:" + orderSnE);
|
|
|
- redisUtil.set(orderSnE, out_trade_no ,RedisDefaultConfig.DEFAULT_EXPIRE_TIME);
|
|
|
+ redisUtil.set(orderSnE, out_trade_no ,RedisKey.EXPIRE_TIME_2_HOUR);
|
|
|
}
|
|
|
orderStrategyFactory.doHandler(orderSn, trade_no, openid, out_trade_no.split("_")[1], 0);
|
|
|
log.warn("微信支付成功,订单号:" + orderSn);
|