refactor(admin): 移除 IndexController 中的冗余参数

- 在 IndexController 类中的 demo2 方法中,移除了 success 方法的冗余参数 $res
- 优化了代码结构,提高了代码的可读性和维护性
This commit is contained in:
mkm 2024-12-28 11:06:06 +08:00
parent 715f84d2f2
commit 35a646ca3e

View File

@ -28,6 +28,6 @@ class IndexController extends BaseAdminController
public function demo2()
{
$res=DemoLogic::test();
return $this->success('成功',$res);
return $this->success('成功');
}
}