diff --git a/app/api/lang/en.php b/app/api/lang/en.php index bb3ca44..6de9c7d 100644 --- a/app/api/lang/en.php +++ b/app/api/lang/en.php @@ -13,6 +13,7 @@ return [ 'You have no permission' => 'No permission to operate!', 'Captcha error' => 'Captcha error!', 'Parameter %s can not be empty' => 'Parameter %s can not be empty', + 'Parameter signature/secret/agent_id/time can not be empty' => 'Parameter signature/secret/agent_id/time can not be empty', 'Invalid timestamp' => 'Invalid timestamp', 'Timestamp expired' => 'Timestamp expired', 'Invalid agent or secret' => 'Invalid agent or secret', diff --git a/app/api/lang/zh-cn.php b/app/api/lang/zh-cn.php index 79c650a..c36c48b 100644 --- a/app/api/lang/zh-cn.php +++ b/app/api/lang/zh-cn.php @@ -43,6 +43,7 @@ return [ 'You have no permission' => '没有权限操作!', 'Parameter error' => '参数错误!', 'Parameter %s can not be empty' => '参数%s不能为空', + 'Parameter signature/secret/agent_id/time can not be empty' => '参数 signature/secret/agent_id/time 不能为空', 'Invalid timestamp' => '无效的时间戳', 'Timestamp expired' => '时间戳已过期', 'Invalid agent or secret' => '代理或密钥无效', diff --git a/config/route.php b/config/route.php index 79c8286..1d306ff 100644 --- a/config/route.php +++ b/config/route.php @@ -109,7 +109,7 @@ Route::post('/api/account/retrievePassword', [\app\api\controller\Account::class Route::post('/api/ems/send', [\app\api\controller\Ems::class, 'send']); // api/v1 鉴权 -Route::add(['GET', 'POST'], '/api/v1/authToken', [\app\api\controller\v1\Auth::class, 'authToken']); +Route::get('/api/v1/authToken', [\app\api\controller\v1\Auth::class, 'authToken']); // ==================== Admin 路由 ==================== // Admin 多为 JSON API,前端可能用 GET 传参查列表、POST 提交表单,使用 any 确保兼容 diff --git a/web/types/tableRenderer.d.ts b/web/types/tableRenderer.d.ts index ab5299a..36e3560 100644 --- a/web/types/tableRenderer.d.ts +++ b/web/types/tableRenderer.d.ts @@ -8,6 +8,7 @@ type TableRenderer = | 'icon' | 'image' | 'images' + | 'ipWhiteList' | 'switch' | 'tag' | 'tags'