'ID', 'goods_id' => 'Goods ID', 'pic_url' => 'Pic Url', 'is_delete' => 'Is Delete', ]; } public function afterSave($insert, $changedAttributes) { $data = $insert ? json_encode($this->attributes) : json_encode($changedAttributes); CommonActionLog::storeActionLog('', $insert, $this->is_delete, $data, $this->id); } }