can('sign')) { return $this->response()->error('不可操作')->refresh(); } $res = $model->setOperator($admin)->receive(); if ($res === true) { return $this->response()->success('操作成功')->refresh(); } return $this->response()->error('操作失败')->refresh(); } catch (\Exception $exception) { return $this->response()->error($exception->getMessage())->refresh(); } } public function dialog() { $this->confirm('您确定已经收到货了吗'); } }