|
@@ -85,7 +85,7 @@ class Config extends Controller
|
|
|
*/
|
|
*/
|
|
|
public function destroy()
|
|
public function destroy()
|
|
|
{
|
|
{
|
|
|
-// return $this->error(HttpStatus::CUSTOM_ERROR,'禁止删除');
|
|
|
|
|
|
|
+ return $this->error(HttpStatus::CUSTOM_ERROR,'禁止删除');
|
|
|
$id = request()->post('id');
|
|
$id = request()->post('id');
|
|
|
// 示例:通过 ID 删除
|
|
// 示例:通过 ID 删除
|
|
|
$info = ConfigService::findOne(['id' => $id]);
|
|
$info = ConfigService::findOne(['id' => $id]);
|