|
@@ -85,9 +85,9 @@ class DepartmentController extends CommonController
|
|
public function ting($dep_id)
|
|
public function ting($dep_id)
|
|
{
|
|
{
|
|
|
|
|
|
- if (!Department::where('id', $dep_id)->update(['display' => 0])) return ['status' => '1', 'msg' => '隐藏失败!'];
|
|
|
|
|
|
+ if (!Department::where('id', $dep_id)->update(['display' => 0])) return ['status' => '0', 'msg' => '隐藏失败!'];
|
|
|
|
|
|
- return ['status' => '0','msg' => '隐藏成功!'];
|
|
|
|
|
|
+ return ['status' => '1','msg' => '隐藏成功!'];
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|