refactor: 修改语言接口

This commit is contained in:
2025-02-13 15:39:55 +08:00
parent 7bfb0cca1e
commit 8582d93678
3 changed files with 2 additions and 10 deletions

View File

@@ -32,7 +32,7 @@ class Language
public function cutover()
{
$id = request()->param('id');
$language = LanguageModel::id($id)->find();
$language = LanguageModel::bypk($id)->find();
if (is_null($language)) {
return error('语言不存在');
}