refactor: 修改充值回调逻辑
This commit is contained in:
parent
d1bcc7225f
commit
9a5ca744d7
@ -180,7 +180,8 @@ public class AccountRechargeServiceImpl extends DefaultBaseService implements IA
|
||||
String accountItemId = iAccountItemService.saveReturnId(vo);
|
||||
// 2. 修改状态为2
|
||||
updateCheck(po.getAccountRechargeId(), RechargeCheckEnum.RECHARGE_SUCCESS, rechargeRemark, accountItemId, "", DateUtil.getTime());
|
||||
remoteWangGengInvoiceSerivceImpl.paySuccess(po.getAccountId());
|
||||
// 3.通知到账
|
||||
sysCallbackService.save("项目充值到账", systemApiPathProperties.getCopyright() + "api/pay/recharge-success/user-id/" + po.getAccountId(), null);
|
||||
}
|
||||
}
|
||||
|
||||
@ -550,9 +551,6 @@ public class AccountRechargeServiceImpl extends DefaultBaseService implements IA
|
||||
}
|
||||
}
|
||||
|
||||
@Autowired
|
||||
private IRemoteWangGengInvoiceService remoteWangGengInvoiceSerivceImpl;
|
||||
|
||||
@Override
|
||||
public synchronized void saveConfirmOnline(String id, String orderId, String successTime) {
|
||||
AccountRechargeDTO dto = get(id);
|
||||
@ -568,18 +566,6 @@ public class AccountRechargeServiceImpl extends DefaultBaseService implements IA
|
||||
String accountItemId = iAccountItemService.saveReturnId(vo);
|
||||
// 2. 修改状态为2
|
||||
updateCheck(dto.getAccountRechargeId(), RechargeCheckEnum.RECHARGE_SUCCESS, "线上充值", accountItemId, orderId, successTime);
|
||||
if (!StringUtils.isBlank(dto.getSelfData())) {
|
||||
try {
|
||||
JSONObject selfData = JSON.parseObject(dto.getSelfData());
|
||||
if (selfData.containsKey("type") && StringUtils.equals("PROJ_PKG", selfData.getString("type"))) {
|
||||
LOG.debug("通知付打包款成功");
|
||||
sysCallbackService.save("项目打包付款成功", systemApiPathProperties.getCopyright() + "api/pay/pkg-pay-success/proj-id/" + selfData.getString("projId"), null);
|
||||
return;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
LOG.error(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
// 3. 调用第三方接口, 告知充值到账
|
||||
sysCallbackService.save("项目充值到账", systemApiPathProperties.getCopyright() + "api/pay/recharge-success/user-id/" + dto.getAccountId(), null);
|
||||
}
|
||||
|
@ -40,6 +40,7 @@ public interface IRemoteWangGengInvoiceService {
|
||||
*/
|
||||
void update(String invoiceId, InvoiceExamineVO invoiceExamineVO);
|
||||
|
||||
@Deprecated
|
||||
void paySuccess(String userId);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user