fixed status
This commit is contained in:
parent
e171233df5
commit
878555c3af
|
|
@ -55,6 +55,7 @@ class PluginController extends Controller
|
||||||
throw new Exception("无效的插件");
|
throw new Exception("无效的插件");
|
||||||
}
|
}
|
||||||
$fields = $request->all();
|
$fields = $request->all();
|
||||||
|
dd($fields);
|
||||||
SettingRepo::update('plugin', $code, $fields);
|
SettingRepo::update('plugin', $code, $fields);
|
||||||
return json_success("编辑成功");
|
return json_success("编辑成功");
|
||||||
}
|
}
|
||||||
|
|
@ -73,7 +74,7 @@ class PluginController extends Controller
|
||||||
throw new Exception("无效的插件");
|
throw new Exception("无效的插件");
|
||||||
}
|
}
|
||||||
$status = $request->get('status');
|
$status = $request->get('status');
|
||||||
SettingRepo::update('plugin', $code, ['name' => 'status', 'value' => $status]);
|
SettingRepo::update('plugin', $code, ['status' => $status]);
|
||||||
return json_success("编辑成功");
|
return json_success("编辑成功");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue