payload['id'] ?? null; return $this ->response() ->success('导入成功') ->refresh(); } /** * Build a form here. */ public function form() { // 设置隐藏表单,传递用户id $this->select('category_id', admin_trans_label('category_name')) ->options(BaseProductCategory::selectOptions()) ->required(); $this->hidden('album_ids')->attribute('id', 'album_ids'); } /** * The data of the form. * * @return array */ public function default() { return []; } }