Explorar el Código

feat: 会员端转账只有报单中心可以

zhangl hace 1 año
padre
commit
8ab04d54ab
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      common/models/forms/TransferForm.php

+ 1 - 1
common/models/forms/TransferForm.php

@@ -128,7 +128,7 @@ class TransferForm extends Model {
         $transferSwitch = Cache::getSystemConfig()['transferSwitch'] ?? '';
         $transferSwitch = Cache::getSystemConfig()['transferSwitch'] ?? '';
         if ($transferSwitch != 1) {
         if ($transferSwitch != 1) {
             // 转账未开启,判断是否报单中心. 报单中心可开启转账
             // 转账未开启,判断是否报单中心. 报单中心可开启转账
-            $isDec = \frontendApi\modules\v1\models\User::getEnCodeInfo($this->_fromUserInfo['ID'])['IS_DEC'];
+            $isDec = \frontendApi\modules\v1\models\User::getEnCodeInfo($fromUserId)['IS_DEC'];
             if ($isDec != 1) {
             if ($isDec != 1) {
                 $this->addError($attribute, '转账功能已关闭');
                 $this->addError($attribute, '转账功能已关闭');
                 return null;
                 return null;