Ken 2 周之前
父节点
当前提交
acd00c01b8
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/Http/Controllers/admin/Issue.php

+ 2 - 0
app/Http/Controllers/admin/Issue.php

@@ -68,6 +68,7 @@ class Issue extends Controller
      */    
     public function store()
     {
+        return $this->error(HttpStatus::CUSTOM_ERROR,'禁止编辑');
         // try {
             $params = request()->all();
 
@@ -170,6 +171,7 @@ class Issue extends Controller
      */
     public function destroy()
     {
+        return $this->error(HttpStatus::CUSTOM_ERROR,'禁止删除');
         $id = request()->post('id');
         // 示例:通过 ID 删除
         $info = IssueService::findOne(['id' => $id]);