|
|
@@ -52,6 +52,7 @@ public class TransferFuncServiceImpl implements TransferFuncService {
|
|
|
String type = transferAccountsReq.getType();
|
|
|
BigDecimal points = transferAccountsReq.getPoints();
|
|
|
Integer channelType = transferAccountsReq.getChannelType();
|
|
|
+ String remark = transferAccountsReq.getRemark();
|
|
|
/* 生成商户转账订单号 */
|
|
|
String donNo = SEQUENCE.nextId().toString();
|
|
|
if (StrUtil.isEmpty(type)) {
|
|
|
@@ -63,7 +64,7 @@ public class TransferFuncServiceImpl implements TransferFuncService {
|
|
|
Integer scope = transferAccountsReq.getScope();
|
|
|
AlipayClient alipayClient = AliPayClientFactory.getAlipayClient(ShopConfig.DISTRIBUTE_ZFB_DEFAULT_APP_ID);
|
|
|
|
|
|
- AlipayRequest alipayRequest = aliPayTransferAccountsRequest(donNo, account, name, money);
|
|
|
+ AlipayRequest alipayRequest = aliPayTransferAccountsRequest(donNo, account, name, money, remark);
|
|
|
|
|
|
AlipayResponse response = alipayClient.certificateExecute(alipayRequest);
|
|
|
if (response.isSuccess()) {
|
|
|
@@ -76,7 +77,7 @@ public class TransferFuncServiceImpl implements TransferFuncService {
|
|
|
return response;
|
|
|
}
|
|
|
|
|
|
- private AlipayRequest aliPayTransferAccountsRequest(String donNo, String account, String name, BigDecimal money) {
|
|
|
+ private AlipayRequest aliPayTransferAccountsRequest(String donNo, String account, String name, BigDecimal money,String remark) {
|
|
|
//支付宝转账
|
|
|
AlipayFundTransUniTransferRequest transUniTransferRequest = new AlipayFundTransUniTransferRequest();
|
|
|
//转账参数
|
|
|
@@ -86,7 +87,7 @@ public class TransferFuncServiceImpl implements TransferFuncService {
|
|
|
model.setTransAmount(money.divide(BigDecimal.valueOf(100)).toString());
|
|
|
model.setProductCode(ZfbProductCode.STD_RED_PACKET.getProductCode());
|
|
|
model.setBizScene(TransferConstant.DIRECT_TRANSFER);
|
|
|
- model.setOrderTitle("分销提现");
|
|
|
+ model.setOrderTitle(remark);
|
|
|
//红包业务必传,取值REDPACKET
|
|
|
JSONObject businessParams = new JSONObject();
|
|
|
businessParams.putOpt(TransferConstant.SUB_BIZ_SCENE, TransferConstant.RED_PACKET);
|