get('horseman_id'); $oid = request()->get('order_id'); $result = ImsCjdcOrderMain::where('id',$oid)->update(['shipping_type'=>1,'horseman_id'=>$hid]); if ($result){ return $this->success('操作成功', '/order'); }else{ return $this->error('操作失败'); } } /** * Build a form here. */ public function form() { $this->select('horseman_id','配送员') ->options(LanzuServiceHorseman::getHorseman()) ->required(); $this->hidden('order_id')->value($this->data['order_id']); } /** * The data of the form. * * @return array */ public function default() { } }