update 汇付退款添加merchantKey

This commit is contained in:
2023-08-17 11:16:32 +08:00
parent 81e3bde38e
commit 70a16ae804
7 changed files with 72 additions and 18 deletions

View File

@@ -12,16 +12,11 @@ import com.jsowell.common.response.RestApiResponse;
import com.jsowell.common.util.StringUtils;
import com.jsowell.common.util.id.IdUtils;
import com.jsowell.pile.domain.MemberBasicInfo;
import com.jsowell.pile.dto.GetPayModeDTO;
import com.jsowell.pile.dto.PayOrderDTO;
import com.jsowell.pile.dto.PaymentScenarioDTO;
import com.jsowell.pile.dto.WeixinPayDTO;
import com.jsowell.pile.dto.*;
import com.jsowell.pile.service.IMemberBasicInfoService;
import com.jsowell.pile.vo.uniapp.PayModeVO;
import com.jsowell.service.AgentDevService;
import com.jsowell.service.MemberService;
import com.jsowell.service.OrderService;
import com.jsowell.pile.dto.ApplyRefundDTO;
import com.jsowell.wxpay.response.WechatPayNotifyParameter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
@@ -300,6 +295,8 @@ public class PayController extends BaseController {
throw new BusinessException(ReturnCodeEnum.CODE_TOKEN_ERROR);
}
dto.setMemberId(memberId);
String appId = request.getHeader("appId");
dto.setMerchantKey(appId);
dto.setRefundType("2");
orderService.adapayRefund(dto);
response = new RestApiResponse<>();