|
|
@@ -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]);
|