255], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => 'Store ID', 'type' => 'Type', 'title' => '标题', 'sub_title' => '副标题', 'cover_pic' => '封面图片', 'content' => '专题内容', 'read_count' => '阅读量', 'virtual_read_count' => '虚拟阅读量', 'layout' => '布局方式:0=小图,1=大图模式', 'sort' => '排序:升序', 'agree_count' => '点赞数', 'virtual_agree_count' => '虚拟点赞数', 'virtual_favorite_count' => '虚拟收藏量', 'addtime' => 'Addtime', 'is_chosen' => 'Is Chosen', 'is_delete' => 'Is Delete', 'qrcode_pic'=> '海报图', ]; } public function afterSave($insert, $changedAttributes) { $data = $insert ? json_encode($this->attributes) : json_encode($changedAttributes); CommonActionLog::storeActionLog('', $insert, $this->is_delete, $data, $this->id); } }