8.7 部署-3
This commit is contained in:
parent
6b5a86cd4d
commit
5ac1485f32
@ -17,6 +17,7 @@ app:
|
||||
chanel: c01
|
||||
rpc:
|
||||
mode: DUBBO
|
||||
|
||||
# 线程池配置
|
||||
thread:
|
||||
pool:
|
||||
|
@ -11,9 +11,23 @@ app:
|
||||
api-url: http://group-buying-sys:8091
|
||||
# 回调给自己,通常要是公网可访问的域名或网关地址
|
||||
# 如果 pay-mall 服务外部也同 host:8092,可以写:
|
||||
notify-url: http://124.71.159.195:8092/api/v1/alipay/group_buy_notify
|
||||
notify-url: http://group-buying-sys/api/v1/alipay/group_buy_notify
|
||||
notify-type: MQ
|
||||
source: s01
|
||||
chanel: c01
|
||||
channel: c01
|
||||
rpc:
|
||||
mode: DUBBO
|
||||
|
||||
# 线程池配置
|
||||
thread:
|
||||
pool:
|
||||
executor:
|
||||
config:
|
||||
core-pool-size: 20
|
||||
max-pool-size: 50
|
||||
keep-alive-time: 5000
|
||||
block-queue-size: 5000
|
||||
policy: CallerRunsPolicy
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
|
@ -52,6 +52,10 @@
|
||||
<groupId>org.apache.dubbo</groupId>
|
||||
<artifactId>dubbo-registry-nacos</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||
</dependency>
|
||||
<!-- 系统模块 -->
|
||||
<dependency>
|
||||
<groupId>edu.whut</groupId>
|
||||
|
@ -36,8 +36,8 @@ public class ProductPort implements IProductPort {
|
||||
/* -------------------- 公共配置 -------------------- */
|
||||
@Value("${app.config.group-buy-market.source}")
|
||||
private String source;
|
||||
@Value("${app.config.group-buy-market.chanel}")
|
||||
private String chanel;
|
||||
@Value("${app.config.group-buy-market.channel}")
|
||||
private String channel;
|
||||
@Value("${app.config.group-buy-market.notify-url}")
|
||||
private String notifyUrl;
|
||||
@Value("${app.config.group-buy-market.notify-type}")
|
||||
@ -97,7 +97,7 @@ public class ProductPort implements IProductPort {
|
||||
public void settlementMarketPayOrder(String userId, String orderId, Date orderTime) {
|
||||
SettlementMarketPayOrderRequestDTO req = new SettlementMarketPayOrderRequestDTO();
|
||||
req.setSource(source);
|
||||
req.setChannel(chanel);
|
||||
req.setChannel(channel);
|
||||
req.setUserId(userId);
|
||||
req.setOutTradeNo(orderId);
|
||||
req.setOutTradeTime(orderTime);
|
||||
@ -111,7 +111,7 @@ public class ProductPort implements IProductPort {
|
||||
public void refundMarketPayOrder(String userId, String orderId) {
|
||||
RefundMarketPayOrderRequestDTO req = new RefundMarketPayOrderRequestDTO();
|
||||
req.setSource(source);
|
||||
req.setChannel(chanel);
|
||||
req.setChannel(channel);
|
||||
req.setUserId(userId);
|
||||
req.setOutTradeNo(orderId);
|
||||
invoke("refundMarketPayOrder", req);
|
||||
@ -202,7 +202,7 @@ public class ProductPort implements IProductPort {
|
||||
dto.setGoodsId(goodsId);
|
||||
dto.setActivityId(activityId);
|
||||
dto.setSource(source);
|
||||
dto.setChannel(chanel);
|
||||
dto.setChannel(channel);
|
||||
dto.setOutTradeNo(orderId);
|
||||
if ("HTTP".equalsIgnoreCase(notifyType)) {
|
||||
dto.setNotifyUrl(notifyUrl);
|
||||
|
@ -72,7 +72,7 @@ public class AliPayController implements IPayService {
|
||||
.data(payOrderEntity.getPayUrl())
|
||||
.build();
|
||||
} catch (Exception e) {
|
||||
log.error("商品下单,根据商品ID创建支付单失败 userId:{} productId:{}", createPayRequestDTO.getUserId(), createPayRequestDTO.getUserId(), e);
|
||||
log.error("商品下单,根据商品ID创建支付单失败 userId:{} productId:{}", createPayRequestDTO.getUserId(), createPayRequestDTO.getProductId(), e);
|
||||
return Response.<String>builder()
|
||||
.code(Constants.ResponseCode.UN_ERROR.getCode())
|
||||
.info(Constants.ResponseCode.UN_ERROR.getInfo())
|
||||
|
Loading…
x
Reference in New Issue
Block a user