소스 검색

修复判断提现金额实名认证问题

liaofei 2 년 전
부모
커밋
3b4c3be5ca
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      crmeb/crmeb/services/easywechat/v3pay/PayClient.php

+ 1 - 1
crmeb/crmeb/services/easywechat/v3pay/PayClient.php

@@ -212,7 +212,7 @@ class PayClient extends BaseClient
         $totalFee = '0';
         $totalFee = '0';
         $amount = bcadd($amount, '0', 2);
         $amount = bcadd($amount, '0', 2);
         foreach ($transferDetailList as &$item) {
         foreach ($transferDetailList as &$item) {
-            if ($item['transfer_amount'] >= 2000 && !empty($item['user_name'])) {
+            if ($item['transfer_amount'] >= 2000 && empty($item['user_name'])) {
                 throw new PayException('明细金额大于等于2000时,收款人姓名必须填写');
                 throw new PayException('明细金额大于等于2000时,收款人姓名必须填写');
             }
             }
             $totalFee = bcadd($totalFee, $item['transfer_amount'], 2);
             $totalFee = bcadd($totalFee, $item['transfer_amount'], 2);