|
|
@@ -911,9 +911,11 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
//退款请求号
|
|
|
model.setOutRequestNo(outRefundNo);
|
|
|
request.setBizModel(model);
|
|
|
- if (orderDon.getShopId() != null && orderDon.getShopId().equals(ShopConfig.DISTRIBUTE_ZFB_DEFAULT_APP_ID)) {
|
|
|
+ String shopId = orderDon.getShopId();
|
|
|
+ ShopConfig shopConfig = shopConfigMapper.selectOne(Wrappers.lambdaQuery(ShopConfig.class).eq(ShopConfig::getAppId, orderDon.getShopId()));
|
|
|
+ if (shopId != null && shopConfig != null && shopConfig.getIsCert()) {
|
|
|
response = alipayClient.certificateExecute(request);
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
response = alipayClient.execute(request);
|
|
|
}
|
|
|
}
|