This commit is contained in:
2026-03-06 02:27:52 +08:00
parent f598cc8157
commit 70c4966aad
80 changed files with 796 additions and 1191 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ use support\Response;
use Shopwwi\WebmanFilesystem\FilesystemFactory;
use Shopwwi\WebmanFilesystem\Facade\Storage;
use hg\apidoc\annotation as Apidoc;
use taoser\facade\Validate;
use Tinywan\Validate\Facade\Validate;
/**
* 基础控制器
* @Apidoc\NotParse()
@@ -40,7 +40,7 @@ class BaseController
*/
protected function json(int $code, string $msg = 'ok', array|object|null $data = []): Response
{
return json(['code' => $code, 'data' => $data, 'msg' => $msg]);
return json(['code' => $code, 'data' => $data, 'msg' => __($msg)]);
}
protected function success(string $msg = '成功', array|object|null $data = []): Response