浏览代码

Merge tag 'hotfix_1250_2' into develop

hotfix_1250_2
feature/souke
Guillaume Bourgeois 1年前
父节点
当前提交
7d3df69279
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. +7
    -1
      common/logic/User/UserProducer/Service/UserProducerBuilder.php

+ 7
- 1
common/logic/User/UserProducer/Service/UserProducerBuilder.php 查看文件

@@ -64,7 +64,13 @@ class UserProducerBuilder extends AbstractBuilder

public function updateCredit(Payment $payment): void
{
if($payment->user) {
if($payment->user && (
$payment->getType() == Payment::TYPE_DEBIT
|| $payment->getType() == Payment::TYPE_CREDIT
|| ($payment->getType() == Payment::TYPE_PAYMENT && $this->paymentSolver->isMeanPaymentCredit($payment))
|| ($payment->getType() == Payment::TYPE_REFUND && $this->paymentSolver->isMeanPaymentCredit($payment))
)) {
$userProducer = $this->userProducerRepository->findOneUserProducer($payment->user);

if ($userProducer) {

正在加载...
取消
保存