Skip to content

Commit

Permalink
多语言支持
Browse files Browse the repository at this point in the history
  • Loading branch information
ken678 committed Jan 31, 2024
1 parent 0194d76 commit 3b15a9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/think/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace think;

use think\facade\Cookie;
use think\facade\Lang;
use think\facade\Session;

class Request
Expand Down Expand Up @@ -1261,7 +1262,7 @@ protected function throwUploadFileError($error)
7 => 'file write error',
];

$msg = $fileUploadErrors[$error];
$msg = Lang::get($fileUploadErrors[$error]);

throw new Exception($msg);
}
Expand Down

0 comments on commit 3b15a9f

Please sign in to comment.