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