payload['id']) ? $this->payload['id'] : 0; $this->hidden('id')->value($id); $this->radio('is_send', '')->options([ 1=>'发货' ])->default(1); } //点击表单处理 public function handle(array $input) { $is_send = $input['is_send']; try { $order = Order::find($input['id']); if ($is_send > 0) { $order->is_send = $is_send; $order->save(); } } catch (\Exception $exception) { return $this->response()->error($exception->getMessage()); } return $this->response()->success('success')->refresh(); } }