提交代码

yy_dev
胡锐 1 year ago
parent c0723231d6
commit 4d6b70364c
  1. 8
      cweb/src/main/java/com/cweb/notify/LaKaLaController.java
  2. 5
      service/src/main/java/com/hfkj/channel/lakala/LaKaLaWalletService.java

@ -3,6 +3,7 @@ package com.cweb.notify;
import com.alibaba.fastjson.JSONObject;
import com.hfkj.channel.lakala.LaKaLaLedgerService;
import com.hfkj.channel.lakala.LaKaLaWalletService;
import com.hfkj.config.CommonSysConst;
import com.hfkj.entity.*;
import com.hfkj.service.*;
import com.hfkj.sysenum.*;
@ -148,11 +149,14 @@ public class LaKaLaController {
// 延迟3秒
Thread.sleep(3000);
String notifyUrl = CommonSysConst.getSysConfig().getDomainName()+"/crest/merWithdrawal/notify?cupNo="+merLedger.getCupNo();
// 配置账户自动结算
laKaLaWalletService.ewalletSettleProfile(1,merLedger.getCupNo(), "02", "06");
laKaLaWalletService.ewalletSettleProfile(1,merLedger.getCupNo(), "02", "06", notifyUrl);
// 配置分账接收方账户自动结算
laKaLaWalletService.ewalletSettleProfile(2,merLedger.getReceiverNo(), "02", "06");
laKaLaWalletService.ewalletSettleProfile(2,merLedger.getReceiverNo(), "02", "06", notifyUrl);
} else {
merLedger.setStatus(MerLedgerStatusEnum.status3.getNumber());
merLedger.setRejectReason(respData.getString("remark"));

@ -256,9 +256,10 @@ public class LaKaLaWalletService {
* @param merCupNo 商户号
* @param settleType 提款模式01主动提款 02自动结算
* @param settleTime 结算时间小时- 默认值06如08:00-09:00到账则传入08
* @param notifyUrl 通知地址
* @return
*/
public JSONObject ewalletSettleProfile(Integer merCupType,String merCupNo, String settleType, String settleTime) {
public JSONObject ewalletSettleProfile(Integer merCupType,String merCupNo, String settleType, String settleTime,String notifyUrl) {
BsMer mer = null;
if (merCupType.equals(1)) {
@ -299,7 +300,7 @@ public class LaKaLaWalletService {
map.put("mercId", merCupNo);
map.put("settleType", settleType);
map.put("settleTime", settleTime);
map.put("notifyUrl", CommonSysConst.getSysConfig().getDomainName());
map.put("notifyUrl", notifyUrl);
param.put("reqData", map);
// 生成签名

Loading…
Cancel
Save