TimestampBehavior::class, 'value' => time() ] ]; } public function rules() { return [ [['store_id', 'created_at', 'updated_at', 'is_delete'], 'integer'], [['banner'], 'string'], ]; } public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => '商城ID', 'created_at' => '创建时间', 'updated_at' => '更新时间', 'is_delete' => '是否删除', 'banner' => '轮播图', ]; } }