Sfoglia il codice sorgente

增加errorHandle关键字

kevin_zhangl 2 anni fa
parent
commit
db4cfe3022
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      vendor/yiisoft/yii2/web/ErrorHandler.php

+ 1 - 1
vendor/yiisoft/yii2/web/ErrorHandler.php

@@ -150,7 +150,7 @@ class ErrorHandler extends \yii\base\ErrorHandler
             $exception = new HttpException(500, Yii::t('yii', 'An internal server error occurred.'));
         }
 
-        $errorOutline = ['AR_', 'PHP', 'Undefined', 'Undefined index', 'SQLSTATE', 'Trying to access array offset on value of type null', 'Call to a member function', '转账失败'];
+        $errorOutline = ['AR_', 'PHP', 'Undefined', 'Undefined index', 'SQLSTATE', 'Trying to access array offset on value of type null', 'Call to a member function', '转账时发生错误'];
         foreach ($errorOutline as $item) {
             if (false !== strpos($exception->getMessage(), $item)) {
                 $it = [