theojeng преди 3 години
родител
ревизия
2afae903bc
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      common/models/forms/TransferForm.php

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

@@ -304,7 +304,7 @@ class TransferForm extends Model {
         $fromData = Balance::getLogData($this->_fromUserInfo['ID']);
         $toData = Balance::getLogData($this->_toUserInfo['ID']);
         if ($this->_fromUserInfo['ID']==$this->_toUserInfo['ID'] && $this->_transferConfig['out']==$this->_transferConfig['in']){
-            throw new \Exception('不能给自己转账');
+            throw new \Exception('不能给同一账户转账');
         }
         $this->userOperateLogger->saveBeforeContent=array_merge($fromData,$toData);