error('修改成功'); } /** * Build a form here. */ public function form() { $id = $this->getKey(); $this->display('activity_type_limit_nums','同一活动类型商品单笔订单可购买商品种数'); $this->number('flash_sale','秒杀')->value()->default(); $this->image('group_buy','团购')->value()->default(); $this->image('new_product','新品')->value()->default(); } /** * The data of the form. * * @return array */ public function default() { return []; } }