|
|
@@ -422,7 +422,7 @@ public class FsStorePaymentServiceImpl implements IFsStorePaymentService {
|
|
|
@Autowired
|
|
|
IPayService payService;
|
|
|
@Override
|
|
|
- public R refundFsStorePayment(Long paymentId, String appId) {
|
|
|
+ public R refundFsStorePayment(Long paymentId) {
|
|
|
FsStorePayment fsStorePayment = fsStorePaymentMapper.selectFsStorePaymentByPaymentId(paymentId);
|
|
|
if(fsStorePayment!=null){
|
|
|
String orderType="";
|
|
|
@@ -442,12 +442,12 @@ public class FsStorePaymentServiceImpl implements IFsStorePaymentService {
|
|
|
|
|
|
if(fsStorePayment.getPayMode().equals("wx")){
|
|
|
WxPayConfig payConfig = new WxPayConfig();
|
|
|
- if (StringUtils.isBlank(appId)) {
|
|
|
+ if (StringUtils.isBlank(fsStorePayment.getAppId())) {
|
|
|
throw new IllegalArgumentException("appId不能为空");
|
|
|
}
|
|
|
- FsCoursePlaySourceConfig fsCoursePlaySourceConfig = fsCoursePlaySourceConfigMapper.selectCoursePlaySourceConfigByAppId(appId);
|
|
|
+ FsCoursePlaySourceConfig fsCoursePlaySourceConfig = fsCoursePlaySourceConfigMapper.selectCoursePlaySourceConfigByAppId(fsStorePayment.getAppId());
|
|
|
if (fsCoursePlaySourceConfig == null) {
|
|
|
- throw new CustomException("未找到appId对应的小程序配置: " + appId);
|
|
|
+ throw new CustomException("未找到appId对应的小程序配置: " + fsStorePayment.getAppId());
|
|
|
}
|
|
|
Long merchantConfigId = fsCoursePlaySourceConfig.getMerchantConfigId();
|
|
|
if (merchantConfigId == null || merchantConfigId <= 0) {
|