This commit is contained in:
你的名字
2025-10-16 09:56:37 +08:00
parent 8f278d494f
commit c1b8542200

View File

@ -117,13 +117,13 @@ class Order extends AdminController
empty($row) && $this->error('数据不存在');
if ($request->isPost()) {
try {
$save = (new \app\admin\model\BlackIp())->save([
$save = self::$model->save([
'type' => $row->type == 1?0:1,
]);
}catch (\Exception $e) {
$this->error('保存失败');
}
$save ? $this->success('IP拉黑成功') : $this->error('保存失败');
$save ? $this->success('操作处理成功') : $this->error('保存失败');
}
}