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