refactor(admin): 移除 IndexController 中的冗余参数
- 在 IndexController 类中的 demo2 方法中,移除了 success 方法的冗余参数 $res - 优化了代码结构,提高了代码的可读性和维护性
This commit is contained in:
parent
715f84d2f2
commit
35a646ca3e
@ -28,6 +28,6 @@ class IndexController extends BaseAdminController
|
||||
public function demo2()
|
||||
{
|
||||
$res=DemoLogic::test();
|
||||
return $this->success('成功',$res);
|
||||
return $this->success('成功');
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user